instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: How many silvers for a school with 2 golds and over 2 total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (silver_medals VARCHAR, gold_medals VARCHAR, total_medals VARCHAR) | SELECT silver_medals FROM table_name_57 WHERE gold_medals = 2 AND total_medals > 2 |
Write a SQL query that answers the following question: How many gold medals for the school with less than 1 total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (gold_medals VARCHAR, total_medals INTEGER) | SELECT COUNT(gold_medals) FROM table_name_43 WHERE total_medals < 1 |
Write a SQL query that answers the following question: What is the entrant for 1967? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (entrant VARCHAR, year VARCHAR) | SELECT entrant FROM table_name_76 WHERE year = 1967 |
Write a SQL query that answers the following question: What ist he entrant later than 1963 with an eagle MK1 chassis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) | SELECT entrant FROM table_name_11 WHERE year > 1963 AND chassis = "eagle mk1" |
Write a SQL query that answers the following question: What is the entrant that has 0 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (entrant VARCHAR, pts VARCHAR) | SELECT entrant FROM table_name_65 WHERE pts = "0" |
Write a SQL query that answers the following question: What is the earliest year with 16 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (year INTEGER, pts VARCHAR) | SELECT MIN(year) FROM table_name_33 WHERE pts = "16" |
Write a SQL query that answers the following question: Name the venue for margin less than 66 and opponent of north queensland cowboys | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (venue VARCHAR, margin VARCHAR, opponent VARCHAR) | SELECT venue FROM table_name_60 WHERE margin < 66 AND opponent = "north queensland cowboys" |
Write a SQL query that answers the following question: Name the sum of year for penrith panthers opponent | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (year INTEGER, opponent VARCHAR) | SELECT SUM(year) FROM table_name_93 WHERE opponent = "penrith panthers" |
Write a SQL query that answers the following question: Name the opponent for 1996 at the mt smart stadium venue | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (opponent VARCHAR, venue VARCHAR, year VARCHAR) | SELECT opponent FROM table_name_52 WHERE venue = "mt smart stadium" AND year = 1996 |
Write a SQL query that answers the following question: Name the average year for 46 margin | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (year INTEGER, margin VARCHAR) | SELECT AVG(year) FROM table_name_95 WHERE margin = 46 |
Write a SQL query that answers the following question: Name the margin for 2002 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (margin VARCHAR, year VARCHAR) | SELECT margin FROM table_name_89 WHERE year = 2002 |
Write a SQL query that answers the following question: Which Affiliation has an Enrollement larger than 502? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (affiliation VARCHAR, enrollment INTEGER) | SELECT affiliation FROM table_name_54 WHERE enrollment > 502 |
Write a SQL query that answers the following question: What School has an Enrollement smaller than 301? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (school VARCHAR, enrollment INTEGER) | SELECT school FROM table_name_76 WHERE enrollment < 301 |
Write a SQL query that answers the following question: Which Grades has an Enrollment larger htan 443 with a Student body of Co-ed? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (grades VARCHAR, enrollment VARCHAR, student_body VARCHAR) | SELECT grades FROM table_name_36 WHERE enrollment > 443 AND student_body = "co-ed" |
Write a SQL query that answers the following question: What's the Student Body with an Affiliation of Roman Catholic and has an Enrollment of 502? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (student_body VARCHAR, affiliation VARCHAR, enrollment VARCHAR) | SELECT student_body FROM table_name_27 WHERE affiliation = "roman catholic" AND enrollment = 502 |
Write a SQL query that answers the following question: What is the average year that has a final Tour position of 54 and a final Vuelta position over 55? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (year INTEGER, final_position___tour VARCHAR, final_position___vuelta VARCHAR) | SELECT AVG(year) FROM table_name_67 WHERE final_position___tour = 54 AND final_position___vuelta > 55 |
Write a SQL query that answers the following question: What is the final Vuelta position associated with a final Giro position over 39 and a final Tour position of 90? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (final_position___vuelta VARCHAR, final_position___giro VARCHAR, final_position___tour VARCHAR) | SELECT final_position___vuelta FROM table_name_26 WHERE final_position___giro > 39 AND final_position___tour = 90 |
Write a SQL query that answers the following question: How many Giro positions are associated with the year 1971 and Tour final positions over 50? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (final_position___giro VARCHAR, year VARCHAR, final_position___tour VARCHAR) | SELECT COUNT(final_position___giro) FROM table_name_45 WHERE year = 1971 AND final_position___tour > 50 |
Write a SQL query that answers the following question: How many laps did the rider Alex Baldolini take? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (laps INTEGER, rider VARCHAR) | SELECT SUM(laps) FROM table_name_94 WHERE rider = "alex baldolini" |
Write a SQL query that answers the following question: How many laps were completed in the time of +7.213 with a grid number larger than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR) | SELECT COUNT(laps) FROM table_name_85 WHERE time_retired = "+7.213" AND grid > 7 |
Write a SQL query that answers the following question: What is total number of laps for bikes manufactured by KTM with a time of +3.578 and a grid number larger than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (laps VARCHAR, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR) | SELECT COUNT(laps) FROM table_name_22 WHERE manufacturer = "ktm" AND time_retired = "+3.578" AND grid > 4 |
Write a SQL query that answers the following question: What was the surface for the May 10, 2009 tournament? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_91 WHERE date = "may 10, 2009" |
Write a SQL query that answers the following question: Which co-driver has fewer than 282 laps and type P tyres? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (co_drivers VARCHAR, laps VARCHAR, tyres VARCHAR) | SELECT co_drivers FROM table_name_44 WHERE laps < 282 AND tyres = "p" |
Write a SQL query that answers the following question: Which class more recent than 1988 has G tyres? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (class VARCHAR, tyres VARCHAR, year VARCHAR) | SELECT class FROM table_name_24 WHERE tyres = "g" AND year > 1988 |
Write a SQL query that answers the following question: What is the greatest number of caps for Bruce Djite? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (caps INTEGER, player VARCHAR) | SELECT MAX(caps) FROM table_name_54 WHERE player = "bruce djite" |
Write a SQL query that answers the following question: How many goals were scored by Eugene Galeković? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (goals VARCHAR, player VARCHAR) | SELECT goals FROM table_name_54 WHERE player = "eugene galeković" |
Write a SQL query that answers the following question: How many goals were scored by players with more than 16 caps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (goals VARCHAR, caps INTEGER) | SELECT goals FROM table_name_45 WHERE caps > 16 |
Write a SQL query that answers the following question: What is the highest place of a swimmer from the Netherlands? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (rank INTEGER, nationality VARCHAR) | SELECT MAX(rank) FROM table_name_75 WHERE nationality = "netherlands" |
Write a SQL query that answers the following question: Name the authority for te akau with roll less than 254 and decile of 8 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (authority VARCHAR, area VARCHAR, roll VARCHAR, decile VARCHAR) | SELECT authority FROM table_name_64 WHERE roll < 254 AND decile = "8" AND area = "te akau" |
Write a SQL query that answers the following question: Tell me the name with decile of 6 and roll of 93 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (name VARCHAR, decile VARCHAR, roll VARCHAR) | SELECT name FROM table_name_63 WHERE decile = "6" AND roll = 93 |
Write a SQL query that answers the following question: What is the result of the match on January 26, 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_44 WHERE date = "january 26, 2006" |
Write a SQL query that answers the following question: What was the status of Bluetooth for the model that launched after 2004 with a ROM (MiB) of 128 and a Wifi of 802.11b? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (bluetooth VARCHAR, wifi VARCHAR, launch_year VARCHAR, rom___mib__ VARCHAR) | SELECT bluetooth FROM table_name_5 WHERE launch_year > 2004 AND rom___mib__ = 128 AND wifi = "802.11b" |
Write a SQL query that answers the following question: What is the RAM (MiB) value for the X30 Mid-Range model? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (ram___mib__ VARCHAR, model VARCHAR) | SELECT ram___mib__ FROM table_name_71 WHERE model = "x30 mid-range" |
Write a SQL query that answers the following question: How many points did the team with more than 68 games, 4 ties, and more than 272 goals against have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (points INTEGER, goals_against VARCHAR, games VARCHAR, tied VARCHAR) | SELECT SUM(points) FROM table_name_14 WHERE games > 68 AND tied = "4" AND goals_against > 272 |
Write a SQL query that answers the following question: Which event had the time 45.74? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (event VARCHAR, time VARCHAR) | SELECT event FROM table_name_42 WHERE time = "45.74" |
Write a SQL query that answers the following question: What was the time of December 15, 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (time VARCHAR, date VARCHAR) | SELECT time FROM table_name_3 WHERE date = "december 15, 2010" |
Write a SQL query that answers the following question: What were the notes for the time 45.74? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (notes VARCHAR, time VARCHAR) | SELECT notes FROM table_name_89 WHERE time = "45.74" |
Write a SQL query that answers the following question: What Player has 23 Tries? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (player VARCHAR, tries VARCHAR) | SELECT player FROM table_name_61 WHERE tries = 23 |
Write a SQL query that answers the following question: How many Goals did Matt Cook have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (goals VARCHAR, player VARCHAR) | SELECT goals FROM table_name_89 WHERE player = "matt cook" |
Write a SQL query that answers the following question: What Full Back Player has 0 Apps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (player VARCHAR, position VARCHAR, apps VARCHAR) | SELECT player FROM table_name_32 WHERE position = "full back" AND apps = 0 |
Write a SQL query that answers the following question: With 0 Goals and less than 1 Tries, what is Matt James position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (position VARCHAR, player VARCHAR, goals VARCHAR, tries VARCHAR) | SELECT position FROM table_name_38 WHERE goals = "0" AND tries < 1 AND player = "matt james" |
Write a SQL query that answers the following question: What is the earliest round drafted for a University of Southern California player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (round INTEGER, school VARCHAR) | SELECT MIN(round) FROM table_name_91 WHERE school = "university of southern california" |
Write a SQL query that answers the following question: What round drafted was the 1b and a Signed of no cardinals - 1969 june? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (round VARCHAR, position VARCHAR, signed VARCHAR) | SELECT COUNT(round) FROM table_name_24 WHERE position = "1b" AND signed = "no cardinals - 1969 june" |
Write a SQL query that answers the following question: Which event has an Opponent of akihiro gono, and a Method of decision? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (event VARCHAR, opponent VARCHAR, method VARCHAR) | SELECT event FROM table_name_60 WHERE opponent = "akihiro gono" AND method = "decision" |
Write a SQL query that answers the following question: Which location has an Opponent of masanori suda? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (location VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_84 WHERE opponent = "masanori suda" |
Write a SQL query that answers the following question: Which opponent has a Time of 1:34? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (opponent VARCHAR, time VARCHAR) | SELECT opponent FROM table_name_46 WHERE time = "1:34" |
Write a SQL query that answers the following question: Which event resulted in loss with an Opponent of maurice smith? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (event VARCHAR, res VARCHAR, opponent VARCHAR) | SELECT event FROM table_name_52 WHERE res = "loss" AND opponent = "maurice smith" |
Write a SQL query that answers the following question: What is the winner of gold that also has ↓ 1 in the sport of cycling? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (gold VARCHAR, bronze VARCHAR, sport VARCHAR) | SELECT gold FROM table_name_97 WHERE bronze = "↓ 1" AND sport = "cycling" |
Write a SQL query that answers the following question: What is the most recent year that Gulf Racing Middle East won? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (year INTEGER, team VARCHAR) | SELECT MAX(year) FROM table_name_91 WHERE team = "gulf racing middle east" |
Write a SQL query that answers the following question: What is the class of the co-driver emanuele pirro jj lehto? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (class VARCHAR, co_drivers VARCHAR) | SELECT class FROM table_name_58 WHERE co_drivers = "emanuele pirro jj lehto" |
Write a SQL query that answers the following question: What was the final position of Arena Motorsports International? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (pos VARCHAR, team VARCHAR) | SELECT pos FROM table_name_95 WHERE team = "arena motorsports international" |
Write a SQL query that answers the following question: Who was the Co-Driver of the winner of 1992's race? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (co_drivers VARCHAR, year VARCHAR) | SELECT co_drivers FROM table_name_24 WHERE year = 1992 |
Write a SQL query that answers the following question: What is the score in the final with runner-up as the outcome and hard (i) as the surface? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (score_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR) | SELECT score_in_the_final FROM table_name_38 WHERE outcome = "runner-up" AND surface = "hard (i)" |
Write a SQL query that answers the following question: What is the 1st leg score when US Mbila Nzambi is team 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (team_1 VARCHAR) | SELECT 1 AS st_leg FROM table_name_3 WHERE team_1 = "us mbila nzambi" |
Write a SQL query that answers the following question: Who was the opponent on May 20? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_16 WHERE date = "may 20" |
Write a SQL query that answers the following question: Who took the loss on May 25? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_85 WHERE date = "may 25" |
Write a SQL query that answers the following question: What was the record after the game that ended in a 2-3 loss? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (record VARCHAR, score VARCHAR) | SELECT record FROM table_name_74 WHERE score = "2-3" |
Write a SQL query that answers the following question: What was the date of the game that had a loss of Politte (0-2)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (date VARCHAR, loss VARCHAR) | SELECT date FROM table_name_25 WHERE loss = "politte (0-2)" |
Write a SQL query that answers the following question: Who was the opponent at the game that had a loss of Hendrickson (0-1)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (opponent VARCHAR, loss VARCHAR) | SELECT opponent FROM table_name_93 WHERE loss = "hendrickson (0-1)" |
Write a SQL query that answers the following question: What was the smallest attendance at a game when the record was 7-15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (attendance INTEGER, record VARCHAR) | SELECT MIN(attendance) FROM table_name_7 WHERE record = "7-15" |
Write a SQL query that answers the following question: What was the average attendance at a game when the record was 6-13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (attendance INTEGER, record VARCHAR) | SELECT AVG(attendance) FROM table_name_71 WHERE record = "6-13" |
Write a SQL query that answers the following question: What is the yield, neutrons per fission of the group with decay constants less than 0.301, a half-life of 22.72, and a group number larger than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (_neutrons_per_fission VARCHAR, yield INTEGER, group VARCHAR, decay_constant__s_−1__ VARCHAR, half_life__s_ VARCHAR) | SELECT SUM(yield), _neutrons_per_fission FROM table_name_77 WHERE decay_constant__s_−1__ < 0.301 AND half_life__s_ = 22.72 AND group > 2 |
Write a SQL query that answers the following question: With Round 3 and Pick # over 10, what is the higher Overall number? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (overall INTEGER, round VARCHAR, pick__number VARCHAR) | SELECT MAX(overall) FROM table_name_38 WHERE round = 3 AND pick__number > 10 |
Write a SQL query that answers the following question: What is the highest round for College of Nebraska if the Overall is under 190? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (round INTEGER, college VARCHAR, overall VARCHAR) | SELECT MAX(round) FROM table_name_18 WHERE college = "nebraska" AND overall < 190 |
Write a SQL query that answers the following question: Which college has a Pick # 1, Overall more than one, and Round is 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (college VARCHAR, round VARCHAR, pick__number VARCHAR, overall VARCHAR) | SELECT college FROM table_name_34 WHERE pick__number = 1 AND overall > 1 AND round = 7 |
Write a SQL query that answers the following question: What was the attendance on 21 August 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR) | SELECT SUM(attendance) FROM table_name_43 WHERE date = "21 august 2004" |
Write a SQL query that answers the following question: What is the average rank of an athlete that holds a time higher than 53.38? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (rank INTEGER, time INTEGER) | SELECT AVG(rank) FROM table_name_76 WHERE time > 53.38 |
Write a SQL query that answers the following question: What lane did the swimmer with a time of 52.84 have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (lane INTEGER, time VARCHAR) | SELECT MAX(lane) FROM table_name_43 WHERE time = 52.84 |
Write a SQL query that answers the following question: What lane did the rank 3 swimmer use? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (lane INTEGER, rank VARCHAR) | SELECT MAX(lane) FROM table_name_57 WHERE rank = 3 |
Write a SQL query that answers the following question: Which opponent played on July 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_3 WHERE date = "july 15" |
Write a SQL query that answers the following question: Where has Jimmy Demaret as a player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_94 WHERE player = "jimmy demaret" |
Write a SQL query that answers the following question: How much does it cost for United States and Byron nelson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (money___ VARCHAR, country VARCHAR, player VARCHAR) | SELECT COUNT(money___) AS $__ FROM table_name_94 WHERE country = "united states" AND player = "byron nelson" |
Write a SQL query that answers the following question: Which Country has a Place of t8 and byron nelson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (country VARCHAR, place VARCHAR, player VARCHAR) | SELECT country FROM table_name_11 WHERE place = "t8" AND player = "byron nelson" |
Write a SQL query that answers the following question: Name the average pop for chūgoku and prefecture of okayama | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (pop_¹ INTEGER, region VARCHAR, prefecture VARCHAR) | SELECT AVG(pop_¹) FROM table_name_75 WHERE region = "chūgoku" AND prefecture = "okayama" |
Write a SQL query that answers the following question: Name the highest pop for tottori | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (pop_¹ INTEGER, prefecture VARCHAR) | SELECT MAX(pop_¹) FROM table_name_11 WHERE prefecture = "tottori" |
Write a SQL query that answers the following question: Name the sum of pop for shizuoka | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (pop_¹ INTEGER, prefecture VARCHAR) | SELECT SUM(pop_¹) FROM table_name_13 WHERE prefecture = "shizuoka" |
Write a SQL query that answers the following question: Name the total number of pop for ibaraki | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (pop_¹ VARCHAR, prefecture VARCHAR) | SELECT COUNT(pop_¹) FROM table_name_10 WHERE prefecture = "ibaraki" |
Write a SQL query that answers the following question: Who is the mascot for Mishawaka? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (mascot VARCHAR, location VARCHAR) | SELECT mascot FROM table_name_16 WHERE location = "mishawaka" |
Write a SQL query that answers the following question: Which previous conference is associated with Penn school? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (previous_conference VARCHAR, school VARCHAR) | SELECT previous_conference FROM table_name_67 WHERE school = "penn" |
Write a SQL query that answers the following question: Which location is in 71 St. Joseph county with South Bend Washington school? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (location VARCHAR, county VARCHAR, school VARCHAR) | SELECT location FROM table_name_97 WHERE county = "71 st. joseph" AND school = "south bend washington" |
Write a SQL query that answers the following question: What is the mascot for South Bend Clay? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (mascot VARCHAR, school VARCHAR) | SELECT mascot FROM table_name_8 WHERE school = "south bend clay" |
Write a SQL query that answers the following question: What was the address of the building with architects Edmund Woolley and Andrew Hamilton? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (street_address VARCHAR, architect VARCHAR) | SELECT street_address FROM table_name_13 WHERE architect = "edmund woolley and andrew hamilton" |
Write a SQL query that answers the following question: How many years as tallest building was the Tenth Presbyterian Church? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (years_as_tallest VARCHAR, name VARCHAR) | SELECT years_as_tallest FROM table_name_78 WHERE name = "tenth presbyterian church" |
Write a SQL query that answers the following question: How many years as tallest building was Independence Hall? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (years_as_tallest VARCHAR, name VARCHAR) | SELECT years_as_tallest FROM table_name_6 WHERE name = "independence hall" |
Write a SQL query that answers the following question: What is the height of the Tenth Presbyterian Church? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (height_ft__m_ VARCHAR, name VARCHAR) | SELECT height_ft__m_ FROM table_name_69 WHERE name = "tenth presbyterian church" |
Write a SQL query that answers the following question: For the Loss of Plesac (1-5), what is the Record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (record VARCHAR, loss VARCHAR) | SELECT record FROM table_name_63 WHERE loss = "plesac (1-5)" |
Write a SQL query that answers the following question: For the Loss of Plesac (1-5), what is the Record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (record VARCHAR, loss VARCHAR) | SELECT record FROM table_name_18 WHERE loss = "plesac (1-5)" |
Write a SQL query that answers the following question: Name the entrant for year less than 1990 and chassis of eurobrun er189 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) | SELECT entrant FROM table_name_98 WHERE year < 1990 AND chassis = "eurobrun er189" |
Write a SQL query that answers the following question: Name the engine for years before 1990 and chassis of eurobrun er189 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (engine VARCHAR, year VARCHAR, chassis VARCHAR) | SELECT engine FROM table_name_57 WHERE year < 1990 AND chassis = "eurobrun er189" |
Write a SQL query that answers the following question: With games started smaller than 16 plus receptions of 51, what is the smallest amount of touchdowns listed? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (touchdowns INTEGER, receptions VARCHAR, games_started VARCHAR) | SELECT MIN(touchdowns) FROM table_name_79 WHERE receptions = 51 AND games_started < 16 |
Write a SQL query that answers the following question: What are the highest number of games played that had game starts of 10, receptions of 6 and fumbles smaller than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (games_played INTEGER, fumbles VARCHAR, receptions VARCHAR, games_started VARCHAR) | SELECT MAX(games_played) FROM table_name_9 WHERE receptions = 6 AND games_started = 10 AND fumbles < 3 |
Write a SQL query that answers the following question: When was the location 15km NW of Pol-E Khomri, the circumstaances IED and the casualties of 1 WIA? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (date VARCHAR, location VARCHAR, casualties VARCHAR, circumstances VARCHAR) | SELECT date FROM table_name_66 WHERE casualties = "1 wia" AND circumstances = "ied" AND location = "15km nw of pol-e khomri" |
Write a SQL query that answers the following question: When was the incident in Pol-E Khomri? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (date VARCHAR, location VARCHAR) | SELECT date FROM table_name_17 WHERE location = "pol-e khomri" |
Write a SQL query that answers the following question: What was the incident in imam sahib area, kunduz province? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (nature_of_incident VARCHAR, location VARCHAR) | SELECT nature_of_incident FROM table_name_99 WHERE location = "imam sahib area, kunduz province" |
Write a SQL query that answers the following question: What gender has Romanized name and kim yoon-yeong? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (gender VARCHAR, romanized_name VARCHAR) | SELECT gender FROM table_name_14 WHERE romanized_name = "kim yoon-yeong" |
Write a SQL query that answers the following question: What year did Willis McGahee play fewer than 15 games with the Baltimore Ravens? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (year INTEGER, team VARCHAR, games VARCHAR) | SELECT MIN(year) FROM table_name_97 WHERE team = "baltimore ravens" AND games < 15 |
Write a SQL query that answers the following question: After the 2013 season, what was the fewest number of games that Willis McGahee played in a single season? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (games INTEGER, year INTEGER) | SELECT MIN(games) FROM table_name_81 WHERE year > 2013 |
Write a SQL query that answers the following question: What is the result when the competition was the 2006 fifa world cup qualifier, and a Venue of warner park sporting complex, bassaterre? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (result VARCHAR, competition VARCHAR, venue VARCHAR) | SELECT result FROM table_name_32 WHERE competition = "2006 fifa world cup qualifier" AND venue = "warner park sporting complex, bassaterre" |
Write a SQL query that answers the following question: What is the name of the venue when the competition was friendly, with a Result of 2–3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (venue VARCHAR, competition VARCHAR, result VARCHAR) | SELECT venue FROM table_name_98 WHERE competition = "friendly" AND result = "2–3" |
Write a SQL query that answers the following question: What is the name of the venue when the score was 5–0, and a Competition of 2007 caribbean cup qualifier? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (venue VARCHAR, score VARCHAR, competition VARCHAR) | SELECT venue FROM table_name_21 WHERE score = "5–0" AND competition = "2007 caribbean cup qualifier" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.