instruction
stringlengths 67
299
| input
stringlengths 110
572
| output
stringlengths 18
557
|
---|---|---|
Write a SQL query that answers the following question: What is the 1998 value if the 2000 value is 25? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_3 (Id VARCHAR) | SELECT 1998 FROM table_name_3 WHERE 2000 = "25" |
Write a SQL query that answers the following question: What machine has tony rutter as the rider? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_68 (machine VARCHAR, rider VARCHAR) | SELECT machine FROM table_name_68 WHERE rider = "tony rutter" |
Write a SQL query that answers the following question: What was the mintage when the theme was Santa Claus? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_15 (mintage VARCHAR, theme VARCHAR) | SELECT mintage FROM table_name_15 WHERE theme = "santa claus" |
Write a SQL query that answers the following question: Name the country moving to chelsea | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_24 (country VARCHAR, moving_to VARCHAR) | SELECT country FROM table_name_24 WHERE moving_to = "chelsea" |
Write a SQL query that answers the following question: What is the number of English names that have a Traditional Chinese name of 全椒縣? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1982739_2 (english_name VARCHAR, traditional_chinese VARCHAR) | SELECT COUNT(english_name) FROM table_1982739_2 WHERE traditional_chinese = "全椒縣" |
Write a SQL query that answers the following question: What was the results when the incumbent was ernest istook? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1341423_36 (results VARCHAR, incumbent VARCHAR) | SELECT results FROM table_1341423_36 WHERE incumbent = "Ernest Istook" |
Write a SQL query that answers the following question: What is the lowest pick with fewer than 3 rounds and more than 4 overall? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_15 (pick INTEGER, round VARCHAR, overall VARCHAR) | SELECT MIN(pick) FROM table_name_15 WHERE round < 3 AND overall > 4 |
Write a SQL query that answers the following question: When has Clark University joined the Conference? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1974782_1 (joined INTEGER, institution VARCHAR) | SELECT MAX(joined) FROM table_1974782_1 WHERE institution = "Clark University" |
Write a SQL query that answers the following question: who are the candidates for district new york 10? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2668347_14 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_2668347_14 WHERE district = "New York 10" |
Write a SQL query that answers the following question: Which language is the most popular on the Asian continent? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE country (Code VARCHAR, Continent VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR) | SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = "Asia" GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1 |
Write a SQL query that answers the following question: What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_75 (rank INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR, silver VARCHAR) | SELECT MIN(rank) FROM table_name_75 WHERE gold < 1 AND silver = 0 AND bronze = 1 AND total < 1 |
Write a SQL query that answers the following question: Find the name of the swimmer who has the most records. | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR) | SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY COUNT(*) DESC LIMIT 1 |
Write a SQL query that answers the following question: What is the total number of attendance for games where buffalo was the home team? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_83 (attendance VARCHAR, home VARCHAR) | SELECT COUNT(attendance) FROM table_name_83 WHERE home = "buffalo" |
Write a SQL query that answers the following question: What is the number of guests for the Viking Ingvar, built earlier than 1990? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_46 (guests INTEGER, ship_name VARCHAR, year_built VARCHAR) | SELECT AVG(guests) FROM table_name_46 WHERE ship_name = "viking ingvar" AND year_built < 1990 |
Write a SQL query that answers the following question: Which car won the same award in 2000 that the ferrari f133 5.5l v12 456 / 550 won in 2001? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_13 (Id VARCHAR) | SELECT 2000 FROM table_name_13 WHERE 2001 = "ferrari f133 5.5l v12 456 / 550" |
Write a SQL query that answers the following question: How many tries against did the club with 383 points against have? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_39 (tries_against VARCHAR, points_against VARCHAR) | SELECT tries_against FROM table_name_39 WHERE points_against = "383" |
Write a SQL query that answers the following question: How many races had 10.5 points? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_99 (races VARCHAR, points VARCHAR) | SELECT races FROM table_name_99 WHERE points = "10.5" |
Write a SQL query that answers the following question: What Owner Delivered the T415? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_70 (owner VARCHAR, delivered_as VARCHAR) | SELECT owner FROM table_name_70 WHERE delivered_as = "t415" |
Write a SQL query that answers the following question: Name the league for strikeouts being 451 | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_242813_2 (league VARCHAR, strikeouts VARCHAR) | SELECT league FROM table_242813_2 WHERE strikeouts = 451 |
Write a SQL query that answers the following question: What is the To Par score for the player from France? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_99 (to_par VARCHAR, country VARCHAR) | SELECT to_par FROM table_name_99 WHERE country = "france" |
Write a SQL query that answers the following question: What is the lowest number of seats from the election with 27.0% of votes? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_55 (seats INTEGER, share_of_votes VARCHAR) | SELECT MIN(seats) FROM table_name_55 WHERE share_of_votes = "27.0%" |
Write a SQL query that answers the following question: Flap of 0, and a Race smaller than 2, and a Season of 1989, and a Pole smaller than 0 had what average podium? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_10 (podium INTEGER, pole VARCHAR, season VARCHAR, flap VARCHAR, race VARCHAR) | SELECT AVG(podium) FROM table_name_10 WHERE flap = 0 AND race < 2 AND season = "1989" AND pole < 0 |
Write a SQL query that answers the following question: Who directed the film Antonio's Breakfast? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_44 (director_s_ VARCHAR, film VARCHAR) | SELECT director_s_ FROM table_name_44 WHERE film = "antonio's breakfast" |
Write a SQL query that answers the following question: What heat and what lane is thi hue pham in? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_25 (heat_ VARCHAR, _lane VARCHAR, name VARCHAR) | SELECT heat_ & _lane FROM table_name_25 WHERE name = "thi hue pham" |
Write a SQL query that answers the following question: What is every original air date for the number in season of 7? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_26748314_1 (original_air_date VARCHAR, no_in_season VARCHAR) | SELECT original_air_date FROM table_26748314_1 WHERE no_in_season = 7 |
Write a SQL query that answers the following question: How many spectators watched when the away team was Collingwood? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_8 (crowd VARCHAR, away_team VARCHAR) | SELECT crowd FROM table_name_8 WHERE away_team = "collingwood" |
Write a SQL query that answers the following question: Which city has a capacity of 41903? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_10601843_2 (city VARCHAR, capacity VARCHAR) | SELECT city FROM table_10601843_2 WHERE capacity = 41903 |
Write a SQL query that answers the following question: Name the won promotion for kalmar ff | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2119448_3 (won_promotion VARCHAR, lost_promotion_playoffs VARCHAR) | SELECT won_promotion FROM table_2119448_3 WHERE lost_promotion_playoffs = "Kalmar FF" |
Write a SQL query that answers the following question: Which Tournament has a Semi finalists of monica seles sandrine testud? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_76 (tournament VARCHAR, semi_finalists VARCHAR) | SELECT tournament FROM table_name_76 WHERE semi_finalists = "monica seles sandrine testud" |
Write a SQL query that answers the following question: How many calories is 1 watt hour? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_64 (calorie VARCHAR, watt_hour VARCHAR) | SELECT calorie FROM table_name_64 WHERE watt_hour = "1" |
Write a SQL query that answers the following question: What were the results for incumbent Jim McCrery? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1341453_20 (results VARCHAR, incumbent VARCHAR) | SELECT results FROM table_1341453_20 WHERE incumbent = "Jim McCrery" |
Write a SQL query that answers the following question: Name the most cuts made with top-25 more than 4 and top 5 of 1 with wins more than 0 | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_61 (cuts_made INTEGER, wins VARCHAR, top_25 VARCHAR, top_5 VARCHAR) | SELECT MAX(cuts_made) FROM table_name_61 WHERE top_25 > 4 AND top_5 = 1 AND wins > 0 |
Write a SQL query that answers the following question: What hand guard system is used with a gas piston commando? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_12834315_5 (hand_guards VARCHAR, name VARCHAR) | SELECT hand_guards FROM table_12834315_5 WHERE name = "Gas Piston Commando" |
Write a SQL query that answers the following question: What is the Second when the third is don walchuk? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_91 (second VARCHAR, third VARCHAR) | SELECT second FROM table_name_91 WHERE third = "don walchuk" |
Write a SQL query that answers the following question: How many goals against were scored when the position was higher than 1 and the played was higher than 10? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_17 (goals_against VARCHAR, position VARCHAR, played VARCHAR) | SELECT COUNT(goals_against) FROM table_name_17 WHERE position > 1 AND played > 10 |
Write a SQL query that answers the following question: Who was the away team for the game with a score of 139-119? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_75 (away_team VARCHAR, score VARCHAR) | SELECT away_team FROM table_name_75 WHERE score = "139-119" |
Write a SQL query that answers the following question: How many years was lynn muscarella the high school principal and charlie wiltse the superintendent? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_25037577_1 (year VARCHAR, high_school_principal VARCHAR, superintendent VARCHAR) | SELECT COUNT(year) FROM table_25037577_1 WHERE high_school_principal = "Lynn Muscarella" AND superintendent = "Charlie Wiltse" |
Write a SQL query that answers the following question: Which Years in Orlando has a Nationality of united states, and a Player of doug overton? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_43 (years_in_orlando VARCHAR, nationality VARCHAR, player VARCHAR) | SELECT years_in_orlando FROM table_name_43 WHERE nationality = "united states" AND player = "doug overton" |
Write a SQL query that answers the following question: how many reverse with series being iii series | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_12284476_8 (reverse VARCHAR, series VARCHAR) | SELECT COUNT(reverse) FROM table_12284476_8 WHERE series = "III series" |
Write a SQL query that answers the following question: What is the total sum of Areas (sq.deg) that have an Area (msr) of 43.059 and a Right ascension (hm) larger than 747.73? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_47 (area__sqdeg_ INTEGER, area__msr_ VARCHAR, right_ascension__hm_ VARCHAR) | SELECT SUM(area__sqdeg_) FROM table_name_47 WHERE area__msr_ = 43.059 AND right_ascension__hm_ > 747.73 |
Write a SQL query that answers the following question: Irish name of an dún (contae an dúin) has what county town? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_34 (county VARCHAR, irish_name VARCHAR) | SELECT county AS town FROM table_name_34 WHERE irish_name = "an dún (contae an dúin)" |
Write a SQL query that answers the following question: How many resulted in a loss with 479 points against? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_52 (lost VARCHAR, points_against VARCHAR) | SELECT lost FROM table_name_52 WHERE points_against = "479" |
Write a SQL query that answers the following question: Who was the runner-up when Mohamed Ali got third? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_16331144_1 (runner_up VARCHAR, third_place VARCHAR) | SELECT runner_up FROM table_16331144_1 WHERE third_place = "Mohamed Ali" |
Write a SQL query that answers the following question: Name the year for sammo hung for ip man 2 | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_15301258_1 (year VARCHAR, best_supporting_actor VARCHAR) | SELECT year FROM table_15301258_1 WHERE best_supporting_actor = "Sammo Hung for Ip Man 2" |
Write a SQL query that answers the following question: what is the race title when the winner is dick johnson and the circuit is sandown raceway? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_53 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR) | SELECT race_title FROM table_name_53 WHERE winner = "dick johnson" AND circuit = "sandown raceway" |
Write a SQL query that answers the following question: What was the competition on 7 June 1999? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_84 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_84 WHERE date = "7 june 1999" |
Write a SQL query that answers the following question: What is 1995 Grand Slam Tournament if 1996 is also grand slam tournaments? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_33 (Id VARCHAR) | SELECT 1990 FROM table_name_33 WHERE 1996 = "grand slam tournaments" |
Write a SQL query that answers the following question: Which Delivery has a Name of quince? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_80 (delivery VARCHAR, name VARCHAR) | SELECT delivery FROM table_name_80 WHERE name = "quince" |
Write a SQL query that answers the following question: How many millions of U.S. viewers watched episode 185? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_13301516_1 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR) | SELECT us_viewers__millions_ FROM table_13301516_1 WHERE no_in_series = 185 |
Write a SQL query that answers the following question: How many games lost for teams with over 6 games? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_46 (lost INTEGER, games INTEGER) | SELECT MIN(lost) FROM table_name_46 WHERE games > 6 |
Write a SQL query that answers the following question: What was the series in season 2009? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_61 (series VARCHAR, season VARCHAR) | SELECT series FROM table_name_61 WHERE season = 2009 |
Write a SQL query that answers the following question: List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes. | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR) | SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor' |
Write a SQL query that answers the following question: For an aggregate of 1-3, what was the 2nd leg? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_74 (agg VARCHAR) | SELECT 2 AS nd_leg FROM table_name_74 WHERE agg = "1-3" |
Write a SQL query that answers the following question: What is the type when McCormack is the name? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_21 (type VARCHAR, name VARCHAR) | SELECT type FROM table_name_21 WHERE name = "mccormack" |
Write a SQL query that answers the following question: Which Club has a Rank of 1? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_69 (club VARCHAR, rank VARCHAR) | SELECT club FROM table_name_69 WHERE rank = "1" |
Write a SQL query that answers the following question: What tyre was used in Kyalami? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_81 (tyre VARCHAR, circuit VARCHAR) | SELECT tyre FROM table_name_81 WHERE circuit = "kyalami" |
Write a SQL query that answers the following question: When is the tournament of konica san jose classic? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_41 (date VARCHAR, tournament VARCHAR) | SELECT date FROM table_name_41 WHERE tournament = "konica san jose classic" |
Write a SQL query that answers the following question: Who had a qual 1 best of 1:01.704? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_43 (qual_1 VARCHAR, best VARCHAR) | SELECT qual_1 FROM table_name_43 WHERE best = "1:01.704" |
Write a SQL query that answers the following question: what is the greatest number of wins by japanese formula three? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_10748727_1 (wins INTEGER, series VARCHAR) | SELECT MAX(wins) FROM table_10748727_1 WHERE series = "Japanese Formula Three" |
Write a SQL query that answers the following question: What shows for Wins when there was a Conference of —, western division, in the 1967–68 season? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_61 (wins VARCHAR, season VARCHAR, conference VARCHAR, division VARCHAR) | SELECT wins FROM table_name_61 WHERE conference = "—" AND division = "western" AND season = "1967–68" |
Write a SQL query that answers the following question: Can you tell me the sum of FLap that has the Pole larger than 0, and the Podiums of 6? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_40 (flap INTEGER, pole VARCHAR, podiums VARCHAR) | SELECT SUM(flap) FROM table_name_40 WHERE pole > 0 AND podiums = 6 |
Write a SQL query that answers the following question: Who was the losing team of the game that was contested on February 1, 2004? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_10548224_1 (losing_team VARCHAR, date_contested VARCHAR) | SELECT losing_team FROM table_10548224_1 WHERE date_contested = "February 1, 2004" |
Write a SQL query that answers the following question: What is the best rank with a time of 1:05.14.10? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_59 (rank INTEGER, time VARCHAR) | SELECT MAX(rank) FROM table_name_59 WHERE time = "1:05.14.10" |
Write a SQL query that answers the following question: Which Top-10 has a Cuts made of 10, and a Top-5 larger than 1? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_95 (top_10 INTEGER, cuts_made VARCHAR, top_5 VARCHAR) | SELECT MIN(top_10) FROM table_name_95 WHERE cuts_made = 10 AND top_5 > 1 |
Write a SQL query that answers the following question: What color is the super-soft compound? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_31 (colour VARCHAR, compound_name VARCHAR) | SELECT colour FROM table_name_31 WHERE compound_name = "super-soft" |
Write a SQL query that answers the following question: what is the regulatory citation when the standard is 15 μg/m³? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_11 (regulatory_citation VARCHAR, standard VARCHAR) | SELECT regulatory_citation FROM table_name_11 WHERE standard = "15 μg/m³" |
Write a SQL query that answers the following question: What was the maximum altitude for Neil Armstrong? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_221315_3 (max_altitude__miles_ VARCHAR, pilot VARCHAR) | SELECT max_altitude__miles_ FROM table_221315_3 WHERE pilot = "Neil Armstrong" |
Write a SQL query that answers the following question: What is the chassis for the year of 1969? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_85 (chassis VARCHAR, year VARCHAR) | SELECT chassis FROM table_name_85 WHERE year = 1969 |
Write a SQL query that answers the following question: What is the total number of Lane, when Mark is "7.93", and when React is less than 0.145? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_8 (lane VARCHAR, mark VARCHAR, react VARCHAR) | SELECT COUNT(lane) FROM table_name_8 WHERE mark = 7.93 AND react < 0.145 |
Write a SQL query that answers the following question: Name who directed the production code 1l10 | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_25604014_9 (directed_by VARCHAR, production_code VARCHAR) | SELECT directed_by FROM table_25604014_9 WHERE production_code = "1L10" |
Write a SQL query that answers the following question: What's the rank for February 11, 2012 with less than 18,735 in attendance? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_67 (rank INTEGER, date VARCHAR, attendance VARCHAR) | SELECT AVG(rank) FROM table_name_67 WHERE date = "february 11, 2012" AND attendance < 18 OFFSET 735 |
Write a SQL query that answers the following question: What is the total points for GP/GS of 24/23? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_28 (total_points VARCHAR, gp_gs VARCHAR) | SELECT total_points FROM table_name_28 WHERE gp_gs = "24/23" |
Write a SQL query that answers the following question: What is the score in the touranament of Antalya-Belek? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_66 (score VARCHAR, tournament VARCHAR) | SELECT score FROM table_name_66 WHERE tournament = "antalya-belek" |
Write a SQL query that answers the following question: Name th margin of victory when date is 10 jul 2011 | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1590652_4 (margin_of_victory VARCHAR, date VARCHAR) | SELECT margin_of_victory FROM table_1590652_4 WHERE date = "10 Jul 2011" |
Write a SQL query that answers the following question: What is the most recent year in which the score was 4–6, 6–3, 7–5? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_91 (year INTEGER, score VARCHAR) | SELECT MAX(year) FROM table_name_91 WHERE score = "4–6, 6–3, 7–5" |
Write a SQL query that answers the following question: What is the weight with a denomination that is ten paise? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_53 (weight VARCHAR, denomination VARCHAR) | SELECT weight FROM table_name_53 WHERE denomination = "ten paise" |
Write a SQL query that answers the following question: Show the id, name of each editor and the number of journal committees they are on. | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE editor (editor_id VARCHAR, Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal_committee (Editor_ID VARCHAR) | SELECT T1.editor_id, T1.Name, COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.editor_id |
Write a SQL query that answers the following question: How many debut years have Years at club of 1950–1951, and Games larger than 14? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_39 (debut_year INTEGER, years_at_club VARCHAR, games VARCHAR) | SELECT SUM(debut_year) FROM table_name_39 WHERE years_at_club = "1950–1951" AND games > 14 |
Write a SQL query that answers the following question: How tall is the building with 36 floors? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_23759976_1 (height__m_ VARCHAR, floors VARCHAR) | SELECT height__m_ FROM table_23759976_1 WHERE floors = 36 |
Write a SQL query that answers the following question: Who is the director of the production number 9368? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_51 (director VARCHAR, production_number VARCHAR) | SELECT director FROM table_name_51 WHERE production_number = "9368" |
Write a SQL query that answers the following question: What's the part 3 of the verb in class 5? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1745843_6 (part_3 VARCHAR, class VARCHAR) | SELECT part_3 FROM table_1745843_6 WHERE class = "5" |
Write a SQL query that answers the following question: What is Round, when Record is "4-1"? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_53 (round VARCHAR, record VARCHAR) | SELECT round FROM table_name_53 WHERE record = "4-1" |
Write a SQL query that answers the following question: What is the rank with more than 40 laps and a 23 finish? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_64 (rank VARCHAR, laps VARCHAR, finish VARCHAR) | SELECT rank FROM table_name_64 WHERE laps > 40 AND finish = "23" |
Write a SQL query that answers the following question: Name the four for 6 march 1801 | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_23 (four VARCHAR, date VARCHAR) | SELECT four FROM table_name_23 WHERE date = "6 march 1801" |
Write a SQL query that answers the following question: Which qual has rank of more than 28 and a grid number that is bigger than 23? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_43 (qual VARCHAR, rank VARCHAR, grid VARCHAR) | SELECT qual FROM table_name_43 WHERE rank > 28 AND grid > 23 |
Write a SQL query that answers the following question: Which Record has an Opponent of pittsburgh pirates, and a Date of may 5? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_79 (record VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT record FROM table_name_79 WHERE opponent = "pittsburgh pirates" AND date = "may 5" |
Write a SQL query that answers the following question: What is the authority who set the budget limit (£m) at 900? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_25316812_1 (authority VARCHAR, budget_limit__£m_ VARCHAR) | SELECT authority FROM table_25316812_1 WHERE budget_limit__£m_ = "900" |
Write a SQL query that answers the following question: What is the largest number of tds scored for a player? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_18064020_21 (td INTEGER) | SELECT MAX(td) FROM table_18064020_21 |
Write a SQL query that answers the following question: What was the year with runs of 144? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_68 (year VARCHAR, runs VARCHAR) | SELECT year FROM table_name_68 WHERE runs = "144" |
Write a SQL query that answers the following question: Gold of 0, and a Bronze smaller than 0 and what is the sum of the silver? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_69 (silver INTEGER, gold VARCHAR, bronze VARCHAR) | SELECT SUM(silver) FROM table_name_69 WHERE gold = 0 AND bronze < 0 |
Write a SQL query that answers the following question: Who is the player from the 1971 draft with a pick greater than 7? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_15 (player VARCHAR, draft VARCHAR, pick VARCHAR) | SELECT player FROM table_name_15 WHERE draft = 1971 AND pick > 7 |
Write a SQL query that answers the following question: What are the names and descriptions of the photos taken at the tourist attraction "film festival"? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE TOURIST_ATTRACTIONS (Tourist_Attraction_ID VARCHAR, Name VARCHAR); CREATE TABLE PHOTOS (Name VARCHAR, Description VARCHAR, Tourist_Attraction_ID VARCHAR) | SELECT T1.Name, T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "film festival" |
Write a SQL query that answers the following question: When Karaorman is Team 1, what is the Agg.? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_48 (agg VARCHAR, team_1 VARCHAR) | SELECT agg FROM table_name_48 WHERE team_1 = "karaorman" |
Write a SQL query that answers the following question: What are the name, latitude, and city of the station with the lowest latitude? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE station (name VARCHAR, lat VARCHAR, city VARCHAR) | SELECT name, lat, city FROM station ORDER BY lat LIMIT 1 |
Write a SQL query that answers the following question: What was marlboro brm's lowest points by using brm p160b? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_60 (points INTEGER, entrant VARCHAR, chassis VARCHAR) | SELECT MIN(points) FROM table_name_60 WHERE entrant = "marlboro brm" AND chassis = "brm p160b" |
Write a SQL query that answers the following question: Rank smaller than 4, and a Name of dalma iványi involved which lowest game? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_9 (games INTEGER, rank VARCHAR, name VARCHAR) | SELECT MIN(games) FROM table_name_9 WHERE rank < 4 AND name = "dalma iványi" |
Write a SQL query that answers the following question: What is the party when the incumbent is samuel smith? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2668416_7 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_2668416_7 WHERE incumbent = "Samuel Smith" |
Write a SQL query that answers the following question: Which Season has a Score of 3 – 3 aet , 4–3 pen | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_31 (season VARCHAR, score VARCHAR) | SELECT season FROM table_name_31 WHERE score = "3 – 3 aet , 4–3 pen" |
Write a SQL query that answers the following question: How many points after 1956? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_40 (points VARCHAR, year INTEGER) | SELECT COUNT(points) FROM table_name_40 WHERE year > 1956 |
Write a SQL query that answers the following question: What building is in Shenzhen, have less than 115 floors, and was completed before 2017? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_79 (name VARCHAR, floors VARCHAR, city VARCHAR, completion VARCHAR) | SELECT name FROM table_name_79 WHERE city = "shenzhen" AND completion < 2017 AND floors < 115 |