instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: Who had the pole at the French Grand Prix? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (pole_position VARCHAR, grand_prix VARCHAR) | SELECT pole_position FROM table_name_86 WHERE grand_prix = "french grand prix" |
Write a SQL query that answers the following question: Who constructed the car that won the Canadian Grand Prix? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (constructor VARCHAR, grand_prix VARCHAR) | SELECT constructor FROM table_name_97 WHERE grand_prix = "canadian grand prix" |
Write a SQL query that answers the following question: When Michael Schumacher won the race, who had the fastest lap? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (fastest_lap VARCHAR, winning_driver VARCHAR) | SELECT fastest_lap FROM table_name_18 WHERE winning_driver = "michael schumacher" |
Write a SQL query that answers the following question: For the Player playing for the College of Kentucky and a Height of 6-7 what was their corresponding School? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (school VARCHAR, college VARCHAR, height VARCHAR) | SELECT school FROM table_name_72 WHERE college = "kentucky" AND height = "6-7" |
Write a SQL query that answers the following question: What School did Terrence Jones play for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (school VARCHAR, player VARCHAR) | SELECT school FROM table_name_40 WHERE player = "terrence jones" |
Write a SQL query that answers the following question: What Player(s) have a Height of 6-3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (player VARCHAR, height VARCHAR) | SELECT player FROM table_name_42 WHERE height = "6-3" |
Write a SQL query that answers the following question: For the player with a Height of 6-9 and College of Kentucky what was their NBA Draft? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (nba_draft VARCHAR, height VARCHAR, college VARCHAR) | SELECT nba_draft FROM table_name_41 WHERE height = "6-9" AND college = "kentucky" |
Write a SQL query that answers the following question: What was the score on February 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_84 WHERE date = "february 9" |
Write a SQL query that answers the following question: What is the average point total for arrows racing team before 1983? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (points INTEGER, team VARCHAR, year VARCHAR) | SELECT AVG(points) FROM table_name_73 WHERE team = "arrows racing team" AND year < 1983 |
Write a SQL query that answers the following question: What team has jordan 193 chassis after 1990? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (team VARCHAR, year VARCHAR, chassis VARCHAR) | SELECT team FROM table_name_61 WHERE year > 1990 AND chassis = "jordan 193" |
Write a SQL query that answers the following question: How many points for the cosworth v8 engine after 1985? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (points VARCHAR, year VARCHAR, engine VARCHAR) | SELECT points FROM table_name_23 WHERE year > 1985 AND engine = "cosworth v8" |
Write a SQL query that answers the following question: What is the constructor for the driver with grid less than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (constructor VARCHAR, grid INTEGER) | SELECT constructor FROM table_name_6 WHERE grid < 2 |
Write a SQL query that answers the following question: What Position did Aaron Williams play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_12 WHERE player = "aaron williams" |
Write a SQL query that answers the following question: At Position of guard, from the School/Club Team Notre Dame, how many Years for Jazz did that person play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (years_for_jazz VARCHAR, position VARCHAR, school_club_team VARCHAR) | SELECT years_for_jazz FROM table_name_43 WHERE position = "guard" AND school_club_team = "notre dame" |
Write a SQL query that answers the following question: Which School/Club Team did Andre Wakefield play for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_name_34 WHERE player = "andre wakefield" |
Write a SQL query that answers the following question: What is the Nationality of the player who had Position of guard from School/Club Team Notre Dame? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR) | SELECT nationality FROM table_name_59 WHERE position = "guard" AND school_club_team = "notre dame" |
Write a SQL query that answers the following question: What School/Club Team is Player Howard Wood from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_name_83 WHERE player = "howard wood" |
Write a SQL query that answers the following question: What School/Club Team is Player Aaron Williams from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_name_5 WHERE player = "aaron williams" |
Write a SQL query that answers the following question: What is the street address of the building with 5 floors? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (street_address VARCHAR, floors VARCHAR) | SELECT street_address FROM table_name_9 WHERE floors = "5" |
Write a SQL query that answers the following question: What is the street address of the building with 40 floors? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (street_address VARCHAR, floors VARCHAR) | SELECT street_address FROM table_name_94 WHERE floors = "40" |
Write a SQL query that answers the following question: What were the years the building with 44 floors was tallest? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (years_as_tallest VARCHAR, floors VARCHAR) | SELECT years_as_tallest FROM table_name_53 WHERE floors = "44" |
Write a SQL query that answers the following question: What is the street address of Oliver Building? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (street_address VARCHAR, name VARCHAR) | SELECT street_address FROM table_name_20 WHERE name = "oliver building" |
Write a SQL query that answers the following question: Can you tell me the Winning party of 2003 that has the Constituency of aberdeen north? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (winning_party_2003 VARCHAR, constituency VARCHAR) | SELECT winning_party_2003 FROM table_name_62 WHERE constituency = "aberdeen north" |
Write a SQL query that answers the following question: Can you tell me the lowest Rank that has the Constituency of strathkelvin and bearsden? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (rank INTEGER, constituency VARCHAR) | SELECT MIN(rank) FROM table_name_64 WHERE constituency = "strathkelvin and bearsden" |
Write a SQL query that answers the following question: Can you tell me the sum of Swing to gain that has Constituency of caithness, sutherland and easter ross? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (swing_to_gain INTEGER, constituency VARCHAR) | SELECT SUM(swing_to_gain) FROM table_name_48 WHERE constituency = "caithness, sutherland and easter ross" |
Write a SQL query that answers the following question: What's the Time/Retired of Laps of 75? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (time_retired VARCHAR, laps VARCHAR) | SELECT time_retired FROM table_name_59 WHERE laps = 75 |
Write a SQL query that answers the following question: Which Driver has Laps larger than 78, and a Time/Retired of + 1:09.4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR) | SELECT driver FROM table_name_99 WHERE laps > 78 AND time_retired = "+ 1:09.4" |
Write a SQL query that answers the following question: Hows many Laps are in a Grid of 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (laps VARCHAR, grid VARCHAR) | SELECT COUNT(laps) FROM table_name_72 WHERE grid = 4 |
Write a SQL query that answers the following question: What venue did the away team Collingwood play at? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_42 WHERE away_team = "collingwood" |
Write a SQL query that answers the following question: What is the score of the away team that played at Kardinia Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_33 WHERE venue = "kardinia park" |
Write a SQL query that answers the following question: What is the name of the away team that played at Kardinia Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_2 WHERE venue = "kardinia park" |
Write a SQL query that answers the following question: What is the attendance in the bye week after week 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (attendance VARCHAR, week VARCHAR, opponent VARCHAR) | SELECT attendance FROM table_name_40 WHERE week > 5 AND opponent = "bye" |
Write a SQL query that answers the following question: What location had 1:59:12 in time? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (location VARCHAR, time VARCHAR) | SELECT location FROM table_name_1 WHERE time = "1:59:12" |
Write a SQL query that answers the following question: What is the score for the away team of north melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_79 WHERE away_team = "north melbourne" |
Write a SQL query that answers the following question: Which home team plays at victoria park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_46 WHERE venue = "victoria park" |
Write a SQL query that answers the following question: what is the competition for the event team all-round in the year before 1913? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (competition VARCHAR, event VARCHAR, year VARCHAR) | SELECT competition FROM table_name_38 WHERE event = "team all-round" AND year < 1913 |
Write a SQL query that answers the following question: what is the event for the year less than 1913 with the position of 2nd? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (event VARCHAR, year VARCHAR, position VARCHAR) | SELECT event FROM table_name_60 WHERE year < 1913 AND position = "2nd" |
Write a SQL query that answers the following question: what is the competition in paris for the parallel bars with a position of 1st? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (competition VARCHAR, event VARCHAR, venue VARCHAR, position VARCHAR) | SELECT competition FROM table_name_8 WHERE venue = "paris" AND position = "1st" AND event = "parallel bars" |
Write a SQL query that answers the following question: what is the competition in a year after 1911 with the position of 1st for the rings? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (competition VARCHAR, event VARCHAR, year VARCHAR, position VARCHAR) | SELECT competition FROM table_name_78 WHERE year > 1911 AND position = "1st" AND event = "rings" |
Write a SQL query that answers the following question: what is the year that the position was 1st in paris? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (year VARCHAR, position VARCHAR, venue VARCHAR) | SELECT year FROM table_name_26 WHERE position = "1st" AND venue = "paris" |
Write a SQL query that answers the following question: Which team plays their home matches at the mcg Venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_16 WHERE venue = "mcg" |
Write a SQL query that answers the following question: What host has an original air date of june 11, 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (host VARCHAR, original_airdate VARCHAR) | SELECT host FROM table_name_11 WHERE original_airdate = "june 11, 2007" |
Write a SQL query that answers the following question: Where is the location of a team with a 3-2 record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (location VARCHAR, record VARCHAR) | SELECT location FROM table_name_96 WHERE record = "3-2" |
Write a SQL query that answers the following question: What is the result of the team with the 4-2 record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (res VARCHAR, record VARCHAR) | SELECT res FROM table_name_67 WHERE record = "4-2" |
Write a SQL query that answers the following question: What was St Kilda's away team score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_30 WHERE home_team = "st kilda" |
Write a SQL query that answers the following question: What was the attendance at Moorabbin Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (crowd INTEGER, venue VARCHAR) | SELECT AVG(crowd) FROM table_name_41 WHERE venue = "moorabbin oval" |
Write a SQL query that answers the following question: Who was Melbourne's away team opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_48 WHERE home_team = "melbourne" |
Write a SQL query that answers the following question: What was the attendance at the Footscray away game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (crowd VARCHAR, away_team VARCHAR) | SELECT crowd FROM table_name_19 WHERE away_team = "footscray" |
Write a SQL query that answers the following question: Tell me the competition that happened on 14 june 2008 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_54 WHERE date = "14 june 2008" |
Write a SQL query that answers the following question: Tell me the score for Venue of tanteen recreation ground, st. george's | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (score VARCHAR, venue VARCHAR) | SELECT score FROM table_name_43 WHERE venue = "tanteen recreation ground, st. george's" |
Write a SQL query that answers the following question: How many weeks are associated with Season 3 – spring 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (_number_of_weeks VARCHAR, season VARCHAR) | SELECT COUNT(_number_of_weeks) FROM table_name_74 WHERE season = "3 – spring 2008" |
Write a SQL query that answers the following question: Who won when robert kudelski finished with under 13 weeks? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (winner VARCHAR, _number_of_weeks VARCHAR, third_place VARCHAR) | SELECT winner FROM table_name_89 WHERE _number_of_weeks < 13 AND third_place = "robert kudelski" |
Write a SQL query that answers the following question: What is the average attendance when Brewers are the opponent with a score of 6–3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (attendance INTEGER, opponent VARCHAR, score VARCHAR) | SELECT AVG(attendance) FROM table_name_68 WHERE opponent = "brewers" AND score = "6–3" |
Write a SQL query that answers the following question: What loss occurred on June 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_81 WHERE date = "june 10" |
Write a SQL query that answers the following question: Who is the opponent with a score of 5–4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_36 WHERE score = "5–4" |
Write a SQL query that answers the following question: What is the week for Result of w 28-17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (week VARCHAR, result VARCHAR) | SELECT week FROM table_name_70 WHERE result = "w 28-17" |
Write a SQL query that answers the following question: What is the avarage Attendance for the Date of october 26, 1947? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (attendance INTEGER, date VARCHAR) | SELECT AVG(attendance) FROM table_name_45 WHERE date = "october 26, 1947" |
Write a SQL query that answers the following question: Can you tell me the Years that has the Name of arapohue school? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (years VARCHAR, name VARCHAR) | SELECT years FROM table_name_70 WHERE name = "arapohue school" |
Write a SQL query that answers the following question: Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larger than 86? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (decile INTEGER, area VARCHAR, roll VARCHAR) | SELECT MIN(decile) FROM table_name_52 WHERE area = "matakohe" AND roll > 86 |
Write a SQL query that answers the following question: Can you tell me the total number of Roll that has the Area of aranga? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (roll VARCHAR, area VARCHAR) | SELECT COUNT(roll) FROM table_name_95 WHERE area = "aranga" |
Write a SQL query that answers the following question: Can you tell me the Name that has the Roll larger than 419? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (name VARCHAR, roll INTEGER) | SELECT name FROM table_name_95 WHERE roll > 419 |
Write a SQL query that answers the following question: Which total number of Week has an Opponent of at new orleans saints, and an Attendance larger than 53,448? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (week VARCHAR, opponent VARCHAR, attendance VARCHAR) | SELECT COUNT(week) FROM table_name_17 WHERE opponent = "at new orleans saints" AND attendance > 53 OFFSET 448 |
Write a SQL query that answers the following question: Which Attendance has a Result of w 51-21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (attendance VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_70 WHERE result = "w 51-21" |
Write a SQL query that answers the following question: Who was the Away team at Arden Street Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_98 WHERE venue = "arden street oval" |
Write a SQL query that answers the following question: What is the average top-25 value for majors that have more than 0 wins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (top_25 INTEGER, wins INTEGER) | SELECT AVG(top_25) FROM table_name_27 WHERE wins > 0 |
Write a SQL query that answers the following question: What is the most number of cuts made that had more than 7 events played and more than 2 top-25s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (cuts_made INTEGER, events VARCHAR, top_25 VARCHAR) | SELECT MAX(cuts_made) FROM table_name_18 WHERE events = 7 AND top_25 > 2 |
Write a SQL query that answers the following question: For top-25 values under 2, what is the average number of cuts made? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (cuts_made INTEGER, top_25 INTEGER) | SELECT AVG(cuts_made) FROM table_name_54 WHERE top_25 < 2 |
Write a SQL query that answers the following question: With a dail of 24th and more than 57 seats, what is the election? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (election VARCHAR, seats VARCHAR, dáil VARCHAR) | SELECT election FROM table_name_26 WHERE seats > 57 AND dáil = "24th" |
Write a SQL query that answers the following question: with shares of 45.3% and total seats less than 166. what is the greatest number of seat? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (seats INTEGER, share_of_votes VARCHAR, total_seats VARCHAR) | SELECT MAX(seats) FROM table_name_61 WHERE share_of_votes = "45.3%" AND total_seats < 166 |
Write a SQL query that answers the following question: with a share of 44.2% and 77 seats, what is the greatest seat total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (total_seats INTEGER, seats VARCHAR, share_of_votes VARCHAR) | SELECT MAX(total_seats) FROM table_name_82 WHERE seats = 77 AND share_of_votes = "44.2%" |
Write a SQL query that answers the following question: What is the long in 1994? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (long VARCHAR, year VARCHAR) | SELECT long FROM table_name_60 WHERE year = "1994" |
Write a SQL query that answers the following question: Which team has a long of 67? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (team VARCHAR, long VARCHAR) | SELECT team FROM table_name_6 WHERE long = "67" |
Write a SQL query that answers the following question: What is the RAvg of the year with Ratt of 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (ravg VARCHAR, ratt VARCHAR) | SELECT ravg FROM table_name_27 WHERE ratt = "9" |
Write a SQL query that answers the following question: What is the Ratt of the year with a 78 long? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (ratt VARCHAR, long VARCHAR) | SELECT ratt FROM table_name_97 WHERE long = "78" |
Write a SQL query that answers the following question: Which team has a Ravg of 1.3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (team VARCHAR, ravg VARCHAR) | SELECT team FROM table_name_64 WHERE ravg = "1.3" |
Write a SQL query that answers the following question: What is the rate of 17 years? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (rate VARCHAR, year VARCHAR) | SELECT rate FROM table_name_55 WHERE year = "17 years" |
Write a SQL query that answers the following question: Name the samurai for stampede of t. mask | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (samurai VARCHAR, stampede VARCHAR) | SELECT samurai FROM table_name_97 WHERE stampede = "t. mask" |
Write a SQL query that answers the following question: Which series is based in Toronto on may 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (series VARCHAR, home VARCHAR, date VARCHAR) | SELECT series FROM table_name_3 WHERE home = "toronto" AND date = "may 18" |
Write a SQL query that answers the following question: What is the combined crowd in Vancouver on may 22? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (attendance INTEGER, home VARCHAR, date VARCHAR) | SELECT SUM(attendance) FROM table_name_43 WHERE home = "vancouver" AND date = "may 22" |
Write a SQL query that answers the following question: Tell me the 2012 when 2005 is 314 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (Id VARCHAR) | SELECT 2012 FROM table_name_82 WHERE 2005 = "314" |
Write a SQL query that answers the following question: What position does the player with 13 caps play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (position VARCHAR, caps VARCHAR) | SELECT position FROM table_name_85 WHERE caps = 13 |
Write a SQL query that answers the following question: How many caps for mike macdonald? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (caps INTEGER, player VARCHAR) | SELECT SUM(caps) FROM table_name_30 WHERE player = "mike macdonald" |
Write a SQL query that answers the following question: Tell me the position for round less than 3 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (position VARCHAR, round INTEGER) | SELECT position FROM table_name_1 WHERE round < 3 |
Write a SQL query that answers the following question: Name the nationality for d | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (nationality VARCHAR, position VARCHAR) | SELECT nationality FROM table_name_19 WHERE position = "d" |
Write a SQL query that answers the following question: What sort of Fuel/Trans does the Grey & Red locomotive have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (fuel__trans VARCHAR, colour VARCHAR) | SELECT fuel__trans FROM table_name_15 WHERE colour = "grey & red" |
Write a SQL query that answers the following question: What is the status of the Cub/John locomotive? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (status VARCHAR, name VARCHAR) | SELECT status FROM table_name_34 WHERE name = "the cub/john" |
Write a SQL query that answers the following question: What is the manufacturer, found under the Built column, that made locomotives with a Fuel/Trans of diesel-electric? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (built VARCHAR, fuel__trans VARCHAR) | SELECT built FROM table_name_22 WHERE fuel__trans = "diesel-electric" |
Write a SQL query that answers the following question: What is found in the Built column of the locomotive with 0-4-0 wheels that is still in service? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (built VARCHAR, wheels VARCHAR, status VARCHAR) | SELECT built FROM table_name_8 WHERE wheels = "0-4-0" AND status = "in service" |
Write a SQL query that answers the following question: What is the color of the locomotive built by Minirail 1954? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (colour VARCHAR, built VARCHAR) | SELECT colour FROM table_name_42 WHERE built = "minirail 1954" |
Write a SQL query that answers the following question: What's the total number of rounds with a win result at the sf 5: stadium event? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (round VARCHAR, res VARCHAR, event VARCHAR) | SELECT COUNT(round) FROM table_name_65 WHERE res = "win" AND event = "sf 5: stadium" |
Write a SQL query that answers the following question: What location was fábio maldonado the opponent at? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (location VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_26 WHERE opponent = "fábio maldonado" |
Write a SQL query that answers the following question: How many skaters have a Rank in FS of 3, and a Rank in SP larger than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (final_rank VARCHAR, rank_in_fs VARCHAR, rank_in_sp VARCHAR) | SELECT COUNT(final_rank) FROM table_name_37 WHERE rank_in_fs = 3 AND rank_in_sp > 4 |
Write a SQL query that answers the following question: What is the average SP rank for skaters with a Rank in FS larger than 2, and a Final Rank larger than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (rank_in_sp INTEGER, rank_in_fs VARCHAR, final_rank VARCHAR) | SELECT AVG(rank_in_sp) FROM table_name_92 WHERE rank_in_fs > 2 AND final_rank > 5 |
Write a SQL query that answers the following question: What tournament is listed as A in 1972 and 2R in 1975? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (tournament VARCHAR) | SELECT tournament FROM table_name_69 WHERE 1972 = "a" AND 1975 = "2r" |
Write a SQL query that answers the following question: What is theW-L of the tournament listed as A for 1976? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (career_w_l VARCHAR) | SELECT career_w_l FROM table_name_82 WHERE 1976 = "a" |
Write a SQL query that answers the following question: What is the listing for the US Open in 1977? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (tournament VARCHAR) | SELECT 1977 FROM table_name_12 WHERE tournament = "us open" |
Write a SQL query that answers the following question: What is the career W-L of the tournament that is listed as A in 1968 and 4R in 1974? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (career_w_l VARCHAR) | SELECT career_w_l FROM table_name_23 WHERE 1968 = "a" AND 1974 = "4r" |
Write a SQL query that answers the following question: What is the combined consumption of 1.6 16v? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (combined_consumption VARCHAR, name VARCHAR) | SELECT combined_consumption FROM table_name_60 WHERE name = "1.6 16v" |
Write a SQL query that answers the following question: What is the power of the engine with a combined consumption of (gas/ethanol) and the k7m hi-torque code? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (power VARCHAR, combined_consumption VARCHAR, code VARCHAR) | SELECT power FROM table_name_76 WHERE combined_consumption = "(gas/ethanol)" AND code = "k7m hi-torque" |
Write a SQL query that answers the following question: What is the combined consumption of the engine with the code k9k 796? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (combined_consumption VARCHAR, code VARCHAR) | SELECT combined_consumption FROM table_name_85 WHERE code = "k9k 796" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.