instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What was the lowest Pick number of Player Brian Bradley from Canada, in a Draft year before 1985? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (pick INTEGER, player VARCHAR, nationality VARCHAR, draft VARCHAR) | SELECT MIN(pick) FROM table_name_29 WHERE nationality = "canada" AND draft < 1985 AND player = "brian bradley" |
Write a SQL query that answers the following question: Which Round was Player Adam Cracknell Picked after 231 in a Draft year after 1988? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (round VARCHAR, player VARCHAR, pick VARCHAR, draft VARCHAR) | SELECT round FROM table_name_4 WHERE pick > 231 AND draft > 1988 AND player = "adam cracknell" |
Write a SQL query that answers the following question: Name the total number of yards for avg of 9 and rec of 1 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (yards VARCHAR, avg VARCHAR, rec VARCHAR) | SELECT COUNT(yards) FROM table_name_99 WHERE avg = 9 AND rec = 1 |
Write a SQL query that answers the following question: What is the highest number of losses that the team incurred while scoring less than 79 points in 10 games with a point differential less than 34? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (losses INTEGER, point_differential VARCHAR, points_for VARCHAR, games_played VARCHAR) | SELECT MAX(losses) FROM table_name_69 WHERE points_for < 79 AND games_played = 10 AND point_differential < 34 |
Write a SQL query that answers the following question: Which Player has a Date of Birth (Age When Delisted) of 13 February 1987 (aged 24)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (player VARCHAR, date_of_birth__age_when_delisted_ VARCHAR) | SELECT player FROM table_name_85 WHERE date_of_birth__age_when_delisted_ = "13 february 1987 (aged 24)" |
Write a SQL query that answers the following question: What is listed under Senior List for Date of Birth (Age When Delisted) of 5 June 1984 (aged 23)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (senior_list VARCHAR, date_of_birth__age_when_delisted_ VARCHAR) | SELECT senior_list FROM table_name_84 WHERE date_of_birth__age_when_delisted_ = "5 june 1984 (aged 23)" |
Write a SQL query that answers the following question: What is the average year to begin making autos for a brand that joined GM in 1917? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (year_began_making_autos INTEGER, year_joined_gm VARCHAR) | SELECT AVG(year_began_making_autos) FROM table_name_30 WHERE year_joined_gm = 1917 |
Write a SQL query that answers the following question: Name the date with a home team of melbourne | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_74 WHERE home_team = "melbourne" |
Write a SQL query that answers the following question: Name the venue for collingwood home team | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_40 WHERE home_team = "collingwood" |
Write a SQL query that answers the following question: Which year has a Gen.-Secretary of silvana jansen? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (year VARCHAR, gen_secretary VARCHAR) | SELECT year FROM table_name_7 WHERE gen_secretary = "silvana jansen" |
Write a SQL query that answers the following question: Which Vice President has a President of daniel masny, and a Treasurer of rebecca t. altmann? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (Vice VARCHAR, president VARCHAR, treasurer VARCHAR) | SELECT Vice AS president FROM table_name_29 WHERE president = "daniel masny" AND treasurer = "rebecca t. altmann" |
Write a SQL query that answers the following question: Who was president Year of 2002-2003, second semester? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (president VARCHAR, year VARCHAR) | SELECT president FROM table_name_89 WHERE year = "2002-2003, second semester" |
Write a SQL query that answers the following question: Which treasurer has a President of sebastian ihler? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (treasurer VARCHAR, president VARCHAR) | SELECT treasurer FROM table_name_74 WHERE president = "sebastian ihler" |
Write a SQL query that answers the following question: Which opponent used a grass surface? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (opponent VARCHAR, surface VARCHAR) | SELECT opponent FROM table_name_1 WHERE surface = "grass" |
Write a SQL query that answers the following question: Which tournament had a score of 6–7 (0–7) , 6–2, 4–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (tournament VARCHAR, score VARCHAR) | SELECT tournament FROM table_name_3 WHERE score = "6–7 (0–7) , 6–2, 4–6" |
Write a SQL query that answers the following question: Tell me the total number of points for lost less than 4 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (points VARCHAR, lost INTEGER) | SELECT COUNT(points) FROM table_name_72 WHERE lost < 4 |
Write a SQL query that answers the following question: I want the sum of drawn for lost less than 0 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (drawn INTEGER, lost INTEGER) | SELECT SUM(drawn) FROM table_name_81 WHERE lost < 0 |
Write a SQL query that answers the following question: I want the points difference for points of 14 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (points_difference VARCHAR, points VARCHAR) | SELECT points_difference FROM table_name_29 WHERE points = 14 |
Write a SQL query that answers the following question: Tell me the sum of rank for when gold is more than 0 and silver less than 23 with total more than 32 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR) | SELECT SUM(rank) FROM table_name_59 WHERE gold > 0 AND total > 32 AND silver < 23 |
Write a SQL query that answers the following question: Tell me the sum of silver for liechtenstein and bronze more than 4 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (silver INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT SUM(silver) FROM table_name_34 WHERE nation = "liechtenstein" AND bronze > 4 |
Write a SQL query that answers the following question: Which tournament had a score of 6–4, 4–6, 7–5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (tournament VARCHAR, score VARCHAR) | SELECT tournament FROM table_name_70 WHERE score = "6–4, 4–6, 7–5" |
Write a SQL query that answers the following question: Which tournament had a score of 7–5, 2–6, 7–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (tournament VARCHAR, score VARCHAR) | SELECT tournament FROM table_name_7 WHERE score = "7–5, 2–6, 7–6" |
Write a SQL query that answers the following question: Who was the opponent in the final in which the court surface was hard and the score was 6–3, 3–6, 7–5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR) | SELECT opponent_in_the_final FROM table_name_89 WHERE surface = "hard" AND score = "6–3, 3–6, 7–5" |
Write a SQL query that answers the following question: What was the court surface when the score was 6–4, 6–1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (surface VARCHAR, score VARCHAR) | SELECT surface FROM table_name_90 WHERE score = "6–4, 6–1" |
Write a SQL query that answers the following question: On what date was the opponent in the final Gwinyai Tongoona? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (date VARCHAR, opponent_in_the_final VARCHAR) | SELECT date FROM table_name_62 WHERE opponent_in_the_final = "gwinyai tongoona" |
Write a SQL query that answers the following question: What was the record from the Golden State Warriors on 11/18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (record VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT record FROM table_name_13 WHERE visitor = "golden state warriors" AND date = "11/18" |
Write a SQL query that answers the following question: What class has 4-4-0 wheels and was less than number 40 built? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (class VARCHAR, wheels VARCHAR, no_built VARCHAR) | SELECT class FROM table_name_95 WHERE wheels = "4-4-0" AND no_built < 40 |
Write a SQL query that answers the following question: Name the space crusade when the english is of finnish | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (space_crusade VARCHAR, english VARCHAR) | SELECT space_crusade FROM table_name_7 WHERE english = "finnish" |
Write a SQL query that answers the following question: Name the space crusade which has Genestealers of genrøvere (gene robbers) | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (space_crusade VARCHAR, genestealers VARCHAR) | SELECT space_crusade FROM table_name_92 WHERE genestealers = "genrøvere (gene robbers)" |
Write a SQL query that answers the following question: What was Galatasaray score when when he won in 1990 and Trabzonspor was the runner-up? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (score VARCHAR, year VARCHAR, winners VARCHAR, runners_up VARCHAR) | SELECT score FROM table_name_24 WHERE winners = "galatasaray" AND runners_up = "trabzonspor" AND year = 1990 |
Write a SQL query that answers the following question: How many matches were there in the round with £1,000,000 in prize money? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (matches VARCHAR, prize_money VARCHAR) | SELECT COUNT(matches) FROM table_name_15 WHERE prize_money = "£1,000,000" |
Write a SQL query that answers the following question: What was the date for a round that only had 1 match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (date VARCHAR, matches VARCHAR) | SELECT date FROM table_name_36 WHERE matches = 1 |
Write a SQL query that answers the following question: What date did Hawthorn play as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_87 WHERE away_team = "hawthorn" |
Write a SQL query that answers the following question: What is the hometown for a college in Wisconsin? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (hometown VARCHAR, college VARCHAR) | SELECT hometown FROM table_name_43 WHERE college = "wisconsin" |
Write a SQL query that answers the following question: Which college has a linebacker from Lessburg High School? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (college VARCHAR, position VARCHAR, school VARCHAR) | SELECT college FROM table_name_92 WHERE position = "linebacker" AND school = "lessburg high school" |
Write a SQL query that answers the following question: Which opponent has a week of 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_49 WHERE week = 11 |
Write a SQL query that answers the following question: Which December 4, 1976 week has an attendance less than 57,366? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (week INTEGER, date VARCHAR, attendance VARCHAR) | SELECT MIN(week) FROM table_name_46 WHERE date = "december 4, 1976" AND attendance < 57 OFFSET 366 |
Write a SQL query that answers the following question: Who has a larger than 70.99 km2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (comune VARCHAR, total__km²_ INTEGER) | SELECT comune FROM table_name_52 WHERE total__km²_ > 70.99 |
Write a SQL query that answers the following question: What is the Piano di Sorrento, Napoli lowest km2 with a total smaller than 121.14 km2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (area__km²_ INTEGER, total__km²_ VARCHAR, province VARCHAR, comune VARCHAR) | SELECT MIN(area__km²_) FROM table_name_26 WHERE province = "napoli" AND comune = "piano di sorrento" AND total__km²_ < 121.14 |
Write a SQL query that answers the following question: Which writer had a producer DKA, JL, AS? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (writer VARCHAR, producer_executive_producer VARCHAR) | SELECT writer FROM table_name_85 WHERE producer_executive_producer = "dka, jl, as" |
Write a SQL query that answers the following question: Name the film that Lu directed. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (film_title VARCHAR, director VARCHAR) | SELECT film_title FROM table_name_68 WHERE director = "lu" |
Write a SQL query that answers the following question: Who wrote Toy Story? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (writer VARCHAR, film_title VARCHAR) | SELECT writer FROM table_name_22 WHERE film_title = "toy story" |
Write a SQL query that answers the following question: Which writer had voice characters of JDR, BB, TN, LR, PS? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (writer VARCHAR, voiced_character_s_ VARCHAR) | SELECT writer FROM table_name_13 WHERE voiced_character_s_ = "jdr, bb, tn, lr, ps" |
Write a SQL query that answers the following question: Who was the sound producer that worked under Executive Producer JL? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (sound VARCHAR, producer_executive_producer VARCHAR) | SELECT sound FROM table_name_77 WHERE producer_executive_producer = "jl" |
Write a SQL query that answers the following question: What was the away team at mcg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_44 WHERE venue = "mcg" |
Write a SQL query that answers the following question: What is the name of the player from NGA? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (name VARCHAR, country VARCHAR) | SELECT name FROM table_name_17 WHERE country = "nga" |
Write a SQL query that answers the following question: Where is Odjidja-Ofoe, with an undisclosed transfer fee, moving to? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (moving_to VARCHAR, transfer_fee VARCHAR, name VARCHAR) | SELECT moving_to FROM table_name_64 WHERE transfer_fee = "undisclosed" AND name = "odjidja-ofoe" |
Write a SQL query that answers the following question: What country is the player, with an undisclosed transfer fee and moving to Nacional, from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (country VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR) | SELECT country FROM table_name_96 WHERE transfer_fee = "undisclosed" AND moving_to = "nacional" |
Write a SQL query that answers the following question: What is Odjidja-Ofoe's transfer fee? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (transfer_fee VARCHAR, name VARCHAR) | SELECT transfer_fee FROM table_name_82 WHERE name = "odjidja-ofoe" |
Write a SQL query that answers the following question: What is the name of the player from Cod? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (name VARCHAR, country VARCHAR) | SELECT name FROM table_name_2 WHERE country = "cod" |
Write a SQL query that answers the following question: What country is the player moving to Hamburger SV from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (country VARCHAR, moving_to VARCHAR) | SELECT country FROM table_name_36 WHERE moving_to = "hamburger sv" |
Write a SQL query that answers the following question: Which Driver has an Entrant of Arrows Racing Team and Rounds 1-3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (driver VARCHAR, entrant VARCHAR, rounds VARCHAR) | SELECT driver FROM table_name_25 WHERE entrant = "arrows racing team" AND rounds = "1-3" |
Write a SQL query that answers the following question: Which Constructor has Rounds, All and Driver, Bruno Giacomelli? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (constructor VARCHAR, rounds VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_50 WHERE rounds = "all" AND driver = "bruno giacomelli" |
Write a SQL query that answers the following question: What was the winning score when Damien McGrane was runner-up? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (winning_score VARCHAR, runner_s__up VARCHAR) | SELECT winning_score FROM table_name_39 WHERE runner_s__up = "damien mcgrane" |
Write a SQL query that answers the following question: Who were the runners-up at the Alfred Dunhill Links Championship? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (runner_s__up VARCHAR, tournament VARCHAR) | SELECT runner_s__up FROM table_name_97 WHERE tournament = "alfred dunhill links championship" |
Write a SQL query that answers the following question: Name the highest grid for Laps more than 137 and rank is less than 8 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (grid INTEGER, laps VARCHAR, rank VARCHAR) | SELECT MAX(grid) FROM table_name_89 WHERE laps > 137 AND rank < 8 |
Write a SQL query that answers the following question: I want the total number of rank for Grid less than 20 and dick rathmann and Qual more than 130.92 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (rank VARCHAR, qual VARCHAR, grid VARCHAR, driver VARCHAR) | SELECT COUNT(rank) FROM table_name_73 WHERE grid < 20 AND driver = "dick rathmann" AND qual > 130.92 |
Write a SQL query that answers the following question: Which nation won 1 gold medal and 1 bronze, for a total of 2 medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (nation VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR) | SELECT nation FROM table_name_70 WHERE gold = "1" AND bronze = "1" AND total = 2 |
Write a SQL query that answers the following question: What is the name of the Leading scorer when the Home was the Trail blazers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (leading_scorer VARCHAR, home VARCHAR) | SELECT leading_scorer FROM table_name_61 WHERE home = "trail blazers" |
Write a SQL query that answers the following question: I want the sum of NGC number for spiral galaxy and right acension of 08h14m40.4s | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (ngc_number INTEGER, object_type VARCHAR, right_ascension___j2000__ VARCHAR) | SELECT SUM(ngc_number) FROM table_name_31 WHERE object_type = "spiral galaxy" AND right_ascension___j2000__ = "08h14m40.4s" |
Write a SQL query that answers the following question: Tell me the right ascension for open cluster and NGC number more than 2547 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR) | SELECT right_ascension___j2000__ FROM table_name_59 WHERE object_type = "open cluster" AND ngc_number > 2547 |
Write a SQL query that answers the following question: I want the constellation for declination for °45′ and right ascension of 07h58m | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (constellation VARCHAR, declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR) | SELECT constellation FROM table_name_56 WHERE declination___j2000__ = "°45′" AND right_ascension___j2000__ = "07h58m" |
Write a SQL query that answers the following question: I want the NGC number for right ascension of 08h11m13.6s | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (ngc_number VARCHAR, right_ascension___j2000__ VARCHAR) | SELECT ngc_number FROM table_name_92 WHERE right_ascension___j2000__ = "08h11m13.6s" |
Write a SQL query that answers the following question: What is the average crowd when the home team is north melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (crowd INTEGER, home_team VARCHAR) | SELECT AVG(crowd) FROM table_name_31 WHERE home_team = "north melbourne" |
Write a SQL query that answers the following question: What is the crowd total at mcg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (crowd VARCHAR, venue VARCHAR) | SELECT COUNT(crowd) FROM table_name_45 WHERE venue = "mcg" |
Write a SQL query that answers the following question: How many Red Breasted Nuthatch coins created before 2007 were minted, on average? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (mintage INTEGER, animal VARCHAR, year VARCHAR) | SELECT AVG(mintage) FROM table_name_42 WHERE animal = "red breasted nuthatch" AND year < 2007 |
Write a SQL query that answers the following question: What year was the downy woodpecker coin created? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (year INTEGER, animal VARCHAR) | SELECT SUM(year) FROM table_name_46 WHERE animal = "downy woodpecker" |
Write a SQL query that answers the following question: Which artist created coins before 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (artist VARCHAR, year INTEGER) | SELECT artist FROM table_name_40 WHERE year < 2010 |
Write a SQL query that answers the following question: What is the game number against the team Boston? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (game VARCHAR, team VARCHAR) | SELECT COUNT(game) FROM table_name_3 WHERE team = "boston" |
Write a SQL query that answers the following question: What is the date of game 23? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (date VARCHAR, game VARCHAR) | SELECT date FROM table_name_27 WHERE game = 23 |
Write a SQL query that answers the following question: What percentage of Slovenes lived in the village of Roach in 1951? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (percent_of_slovenes_1951 VARCHAR, village__german_ VARCHAR) | SELECT percent_of_slovenes_1951 FROM table_name_31 WHERE village__german_ = "roach" |
Write a SQL query that answers the following question: Which Venue has an Away team of south melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_89 WHERE away_team = "south melbourne" |
Write a SQL query that answers the following question: What did the Melbourne team score in their away game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_3 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: Which Home team plays at the arden street oval Venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_91 WHERE venue = "arden street oval" |
Write a SQL query that answers the following question: What is Home team Venue for the hawthorn team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_58 WHERE home_team = "hawthorn" |
Write a SQL query that answers the following question: What Home team plays at the princes park Venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_29 WHERE venue = "princes park" |
Write a SQL query that answers the following question: Was the game against the Rattlers at the United Sports Training Center a home game or an away game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (home_away VARCHAR, opponent VARCHAR, field VARCHAR) | SELECT home_away FROM table_name_96 WHERE opponent = "rattlers" AND field = "united sports training center" |
Write a SQL query that answers the following question: What was the opponent for the game at Multi-sport Field? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (opponent VARCHAR, field VARCHAR) | SELECT opponent FROM table_name_65 WHERE field = "multi-sport field" |
Write a SQL query that answers the following question: What is the result of the away game played on August 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (result VARCHAR, home_away VARCHAR, date VARCHAR) | SELECT result FROM table_name_15 WHERE home_away = "away" AND date = "august 4" |
Write a SQL query that answers the following question: On which field was the game played on July 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (field VARCHAR, date VARCHAR) | SELECT field FROM table_name_63 WHERE date = "july 12" |
Write a SQL query that answers the following question: At what venue did Sigurd Rushfeldt score 1 point in the 2006 FIFA World Cup Qualification competition? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (venue VARCHAR, scored VARCHAR, competition VARCHAR) | SELECT venue FROM table_name_53 WHERE scored = 1 AND competition = "2006 fifa world cup qualification" |
Write a SQL query that answers the following question: What date did Sigurd Rushfeldt score less than 2 points in the UEFA Euro 2004 qualifying competition? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (date VARCHAR, scored VARCHAR, competition VARCHAR) | SELECT date FROM table_name_24 WHERE scored < 2 AND competition = "uefa euro 2004 qualifying" |
Write a SQL query that answers the following question: What is the tournament on February 17, 2002? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_21 WHERE date = "february 17, 2002" |
Write a SQL query that answers the following question: How many goals does mitsuo kato have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (goals INTEGER, player VARCHAR) | SELECT MAX(goals) FROM table_name_87 WHERE player = "mitsuo kato" |
Write a SQL query that answers the following question: Which engine has the entrant scuderia ferrari and is driven by Raymond Sommer? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (engine VARCHAR, entrant VARCHAR, driver VARCHAR) | SELECT engine FROM table_name_99 WHERE entrant = "scuderia ferrari" AND driver = "raymond sommer" |
Write a SQL query that answers the following question: What Chassis does Reg Parnell drive? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (chassis VARCHAR, driver VARCHAR) | SELECT chassis FROM table_name_51 WHERE driver = "reg parnell" |
Write a SQL query that answers the following question: What is Ryan McCay's speed that has a rank better than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (speed VARCHAR, rank VARCHAR, rider VARCHAR) | SELECT speed FROM table_name_65 WHERE rank > 8 AND rider = "ryan mccay" |
Write a SQL query that answers the following question: What's the name of the team that went 113.316mph? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (team VARCHAR, speed VARCHAR) | SELECT team FROM table_name_18 WHERE speed = "113.316mph" |
Write a SQL query that answers the following question: What's Matts Nilsson's team that's ranked better than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (team VARCHAR, rank VARCHAR, rider VARCHAR) | SELECT team FROM table_name_81 WHERE rank < 7 AND rider = "matts nilsson" |
Write a SQL query that answers the following question: What is the average drop zone time in the N drop zone for the 1st Pathfinder Prov.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (drop_zone INTEGER, troop_carrier_group VARCHAR) | SELECT AVG(drop_zone) AS Time FROM table_name_22 WHERE drop_zone = "n" AND troop_carrier_group = "1st pathfinder prov." |
Write a SQL query that answers the following question: Which UK Base has an airborne unit of Pathfinders? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (uk_base VARCHAR, airborne_unit VARCHAR) | SELECT uk_base FROM table_name_42 WHERE airborne_unit = "pathfinders" |
Write a SQL query that answers the following question: What was the number of high assists for game 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (high_assists VARCHAR, game VARCHAR) | SELECT high_assists FROM table_name_94 WHERE game = 1 |
Write a SQL query that answers the following question: Tell me the chief judge which has reason for termination of retirement | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (chief_judge VARCHAR, reason_for_termination VARCHAR) | SELECT chief_judge FROM table_name_35 WHERE reason_for_termination = "retirement" |
Write a SQL query that answers the following question: For boozer (13) what is the high assists and high rebounds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (high_assists VARCHAR, high_rebounds VARCHAR) | SELECT high_assists FROM table_name_41 WHERE high_rebounds = "boozer (13)" |
Write a SQL query that answers the following question: What is the score for the game that is less than 4 and a high points of williams (28)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (score VARCHAR, game VARCHAR, high_points VARCHAR) | SELECT score FROM table_name_40 WHERE game < 4 AND high_points = "williams (28)" |
Write a SQL query that answers the following question: Which athlete in the 76 kg class, did not advance at the end of Round 3. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (athlete VARCHAR, round_3 VARCHAR, event VARCHAR) | SELECT athlete FROM table_name_1 WHERE round_3 = "did not advance" AND event = "76 kg" |
Write a SQL query that answers the following question: Who owns the horse with a post position of less than 4 with jockey todd pletcher? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (owner VARCHAR, post_position VARCHAR, jockey VARCHAR) | SELECT owner FROM table_name_99 WHERE post_position < 4 AND jockey = "todd pletcher" |
Write a SQL query that answers the following question: What jockey is on hard spun? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (jockey VARCHAR, horse_name VARCHAR) | SELECT jockey FROM table_name_50 WHERE horse_name = "hard spun" |
Write a SQL query that answers the following question: What horse does todd pletcher ride with odds of 14.20-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (horse_name VARCHAR, jockey VARCHAR, post_time_odds VARCHAR) | SELECT horse_name FROM table_name_84 WHERE jockey = "todd pletcher" AND post_time_odds = "14.20-1" |
Write a SQL query that answers the following question: Who the Owner that has a Lengths Behind of 5½? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (owner VARCHAR, lengths_behind VARCHAR) | SELECT owner FROM table_name_87 WHERE lengths_behind = "5½" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.