Simple Question (Direct)
Simple Question
Q6945601
P58
Q502895
USER
Which person wrote the script for My Gun Is Quick ?
(Q6945601,P58,c(Q502895))
action filter_type
action find
entity Q6945601
relation P58
type Q502895
['Q6945601', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q6945601 property:P58 ?k . ?k rdf:type ontology:Q502895 }
My Gun Is Quick
action filter_type
action find
entity My Gun Is Quick
relation screenwriter
type common name
['My Gun Is Quick', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:My_Gun_Is_Quick property:screenwriter ?k . ?k rdf:type ontology:common_name }
[]
common name
Q336081
SYSTEM
Mickey Spillane
Q336081
(Q6945601,P58,c(Q502895))
action filter_type
action find
entity Q6945601
relation P58
type Q502895
The [ANSWER] wrote the script for My Gun Is Quick
['Q6945601', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q6945601 property:P58 ?k . ?k rdf:type ontology:Q502895 }
Mickey Spillane
The Mickey Spillane wrote the script for My Gun Is Quick
Mickey Spillane
action filter_type
action find
entity My Gun Is Quick
relation screenwriter
type common name
['My Gun Is Quick', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:My_Gun_Is_Quick property:screenwriter ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q336081
P170
Q15416
USER
Which television program was created by that person ?
(c(Q15416),P170,Q336081)
action filter_type
action find_reverse
entity Q336081
relation P170
type Q15416
[{'concept': 'Q15416'}, 'P170', 'Q336081']
SELECT DISTINCT ?d WHERE { ?d property:P170 resource:Q336081 . ?d rdf:type ontology:Q15416 }
Mickey Spillane
action filter_type
action find_reverse
entity Mickey Spillane
relation creator
type television program
[{'concept': 'television program'}, 'creator', 'Mickey Spillane']
SELECT DISTINCT ?d WHERE { ?d property:creator resource:Mickey_Spillane . ?d rdf:type ontology:television_program }
[]
television program
Q4468544
SYSTEM
Murder Me, Murder You
Q4468544
(c(Q15416),P170,Q336081)
action filter_type
action find_reverse
entity Q336081
relation P170
type Q15416
[ANSWER] was created by that person
[{'concept': 'Q15416'}, 'P170', 'Q336081']
SELECT DISTINCT ?d WHERE { ?d property:P170 resource:Q336081 . ?d rdf:type ontology:Q15416 }
Murder Me, Murder You
Murder Me, Murder You was created by that person
Murder Me, Murder You
action filter_type
action find_reverse
entity Mickey Spillane
relation creator
type television program
[{'concept': 'television program'}, 'creator', 'Mickey Spillane']
SELECT DISTINCT ?d WHERE { ?d property:creator resource:Mickey_Spillane . ?d rdf:type ontology:television_program }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q4468544 Q84872 Q315090
P161
Q502895
USER
Does that television program have Milan Emil Uzelac and Stacy Keach in its star cast ?
(Q4468544,P161,Q84872) (Q4468544,P161,Q315090)
action is_in
entity Q4468544
action intersection
action find_reverse
entity Q84872
relation P161
action find_reverse
entity Q315090
relation P161
['Q4468544', 'P161', 'Q84872'] ['Q4468544', 'P161', 'Q315090']
ASK WHERE { resource:Q4468544 property:P161 resource:Q315090 . resource:Q4468544 property:P161 resource:Q84872 }
Murder Me, Murder You Milan Emil Uzelac Stacy Keach
action is_in
entity Murder Me, Murder You
action intersection
action find_reverse
entity Milan Emil Uzelac
relation cast member
action find_reverse
entity Stacy Keach
relation cast member
['Murder Me, Murder You', 'cast member', 'Milan Emil Uzelac'] ['Murder Me, Murder You', 'cast member', 'Stacy Keach']
ASK WHERE { resource:Murder_Me,_Murder_You property:cast_member resource:Stacy_Keach . resource:Murder_Me,_Murder_You property:cast_member resource:Milan_Emil_Uzelac }
[]
common name
SYSTEM
NO and YES respectively
(Q4468544,P161,Q84872) (Q4468544,P161,Q315090)
action is_in
entity Q4468544
action intersection
action find_reverse
entity Q84872
relation P161
action find_reverse
entity Q315090
relation P161
[ANSWER]
['Q4468544', 'P161', 'Q84872'] ['Q4468544', 'P161', 'Q315090']
ASK WHERE { resource:Q4468544 property:P161 resource:Q315090 . resource:Q4468544 property:P161 resource:Q84872 }
NO and YES respectively
action is_in
entity Murder Me, Murder You
action intersection
action find_reverse
entity Milan Emil Uzelac
relation cast member
action find_reverse
entity Stacy Keach
relation cast member
['Murder Me, Murder You', 'cast member', 'Milan Emil Uzelac'] ['Murder Me, Murder You', 'cast member', 'Stacy Keach']
ASK WHERE { resource:Murder_Me,_Murder_You property:cast_member resource:Stacy_Keach . resource:Murder_Me,_Murder_You property:cast_member resource:Milan_Emil_Uzelac }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q336081
P136
Q1792379
USER
What can be considered as category for Mickey Spillane ?
(Q336081,P136,c(Q1792379))
action filter_type
action find
entity Q336081
relation P136
type Q1792379
['Q336081', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?h WHERE { resource:Q336081 property:P136 ?h . ?h rdf:type ontology:Q1792379 }
Mickey Spillane
action filter_type
action find
entity Mickey Spillane
relation genre
type art genre
['Mickey Spillane', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?h WHERE { resource:Mickey_Spillane property:genre ?h . ?h rdf:type ontology:art_genre }
[]
art genre
Q186424
SYSTEM
detective fiction
Q186424
(Q336081,P136,c(Q1792379))
action filter_type
action find
entity Q336081
relation P136
type Q1792379
[ANSWER] can be considered as category for Mickey Spillane
['Q336081', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?h WHERE { resource:Q336081 property:P136 ?h . ?h rdf:type ontology:Q1792379 }
detective fiction
Detective fiction can be considered as category for Mickey Spillane
detective fiction
action filter_type
action find
entity Mickey Spillane
relation genre
type art genre
['Mickey Spillane', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?h WHERE { resource:Mickey_Spillane property:genre ?h . ?h rdf:type ontology:art_genre }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q186424 Q5001997
P136
Q838948
USER
Does Busman's Honeymoon a that art genre as its category ?
(Q5001997,P136,Q186424)
action is_in
entity Q186424
action find
entity Q5001997
relation P136
['Q5001997', 'P136', 'Q186424']
ASK WHERE { resource:Q5001997 property:P136 resource:Q186424 }
detective fiction Busman's Honeymoon
action is_in
entity detective fiction
action find
entity Busman's Honeymoon
relation genre
["Busman's Honeymoon", 'genre', 'detective fiction']
ASK WHERE { resource:Busman's_Honeymoon property:genre resource:detective_fiction }
[]
work of art
SYSTEM
YES
(Q5001997,P136,Q186424)
action is_in
entity Q186424
action find
entity Q5001997
relation P136
[ANSWER]
['Q5001997', 'P136', 'Q186424']
ASK WHERE { resource:Q5001997 property:P136 resource:Q186424 }
Yes
action is_in
entity detective fiction
action find
entity Busman's Honeymoon
relation genre
["Busman's Honeymoon", 'genre', 'detective fiction']
ASK WHERE { resource:Busman's_Honeymoon property:genre resource:detective_fiction }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4468544 Q19282082
P170
Q502895
USER
Is David Ferguson the creator of Murder Me, Murder You ?
(Q4468544,P170,Q19282082)
action is_in
entity Q19282082
action find
entity Q4468544
relation P170
['Q4468544', 'P170', 'Q19282082']
ASK WHERE { resource:Q4468544 property:P170 resource:Q19282082 }
Murder Me, Murder You David Ferguson
action is_in
entity David Ferguson
action find
entity Murder Me, Murder You
relation creator
['Murder Me, Murder You', 'creator', 'David Ferguson']
ASK WHERE { resource:Murder_Me,_Murder_You property:creator resource:David_Ferguson }
[]
common name
SYSTEM
NO
(Q4468544,P170,Q19282082)
action is_in
entity Q19282082
action find
entity Q4468544
relation P170
[ANSWER]
['Q4468544', 'P170', 'Q19282082']
ASK WHERE { resource:Q4468544 property:P170 resource:Q19282082 }
No
action is_in
entity David Ferguson
action find
entity Murder Me, Murder You
relation creator
['Murder Me, Murder You', 'creator', 'David Ferguson']
ASK WHERE { resource:Murder_Me,_Murder_You property:creator resource:David_Ferguson }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1028
Q502895 Q1792379
USER
Which people made a donation for atmost 1 art genre ?
(c(Q1792379),P1028,c(Q502895))
action atmost
action find_reverse_tuple_counts
relation P1028
type Q502895
type Q1792379
value 1
[{'concept': 'Q1792379'}, 'P1028', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:P1028 ?k . ?g rdf:type ontology:Q1792379 . ?k rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?d <= 1 ) }
action atmost
action find_reverse_tuple_counts
relation donated by
type common name
type art genre
value 1
[{'concept': 'art genre'}, 'donated by', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:donated_by ?k . ?g rdf:type ontology:art_genre . ?k rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?d <= 1 ) }
[]
common name art genre
Q22686 Q134817 Q2677
SYSTEM
Donald Trump, Abdul Hamid II, Wilhelm II
Q43720 Q3133098 Q26459473 Q2637616 Q676301 Q23016142 Q26359798 Q27450423 Q1699735 Q26459024 Q26262410 Q213963 Q222458 Q5407510 Q1461924 Q26270023 Q26208057 Q17305789 Q4785964 Q23828909 Q18718742 Q2172853 Q2677 Q18529818 Q18681578 Q52930 Q23719193 Q26155343 Q26254144 Q7240564 Q382439 Q164500 Q2667 Q51056 Q18691655 Q272476 Q18711324 Q18676928 Q26262436 Q77210 Q37134 Q26290195 Q26289878 Q23055273 Q1460119 Q2914083 Q453523 Q26262301 Q26266175 Q134817 Q984 Q15433875 Q26262414 Q18676673 Q26270295 Q22815714 Q165568 Q26154073 Q8479 Q170398 Q15525738 Q365930 Q26262395 Q27431382 Q237463 Q233198 Q16018042 Q7459175 Q62196 Q12322315 Q18674610 Q747341 Q18681522 Q150652 Q26260039 Q19754058 Q27450503 Q22925473 Q26270343 Q27230873 Q3174202 Q7183322 Q4770723 Q95946 Q452811 Q876414 Q438322 Q26262455 Q18674603 Q6968011 Q26289675 Q764443 Q26266139 Q6688106 Q11919354 Q183226 Q4233718 Q154912 Q159416 Q26313983 Q18713952 Q269412 Q26282942 Q26520314 Q26492743 Q26254109 Q26216791 Q16860467 Q9013205 Q20683951 Q26207985 Q57538 Q207384 Q43922 Q1373397 Q26254138 Q1377426 Q26218064 Q6712648 Q18711061 Q26160551 Q9439 Q2551 Q26260093 Q1348898 Q22686 Q26689742 Q22829116 Q26476068 Q1106973 Q21125090 Q26266192 Q152935 Q18691646 Q26266198 Q26415672 Q26254121 Q57986 Q2594 Q589876 Q26262463 Q5088246 Q26262467 Q5396194 Q6141615 Q7399967 Q4924916
(c(Q1792379),P1028,c(Q502895))
action atmost
action find_reverse_tuple_counts
relation P1028
type Q502895
type Q1792379
value 1
[ANSWERS] made a donation for atmost 1 art genre
[{'concept': 'Q1792379'}, 'P1028', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:P1028 ?k . ?g rdf:type ontology:Q1792379 . ?k rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?d <= 1 ) }
Pius IX Henry Sugimoto Mrs. Rodney Davis Dowdell Albert M. Bender John VI of Portugal Barry Toubin Bob and Bonnie Hartman Stuart P. Feld John D. Rockefeller III Revell McCallum Loren F. Taylor Wilhelm Hoegner Frederick Stanley, 16th Earl of Derby Eugene McDermott Friedrich Schiedel Mrs. Randall Hanna Frederick Baekeland Claudia DeMonte Archer Milton Huntington Walter R. Heyneman Faye Bleicher-Berger Rudolf Hanauer Wilhelm II James Chance Carolann Smurthwaite Gustav III of Sweden Mildred Anna Williams Garo Antreasian Ted G. Decker Prentis Cobb Hale Jan Zamoyski Princess Victoria Melita of Saxe-Coburg and Gotha Paul von Hindenburg Franz Joseph I of Austria Orme Lewis Countess Palatine Elisabeth Auguste of Sulzbach Margaret Miller Carl S. Dentzel Clay Lockett Otto Grotewohl Frederick William III of Prussia Arthur Keating Sam Patania Lawrence K. Miller Henner Löffler Martin Hägglund Stanisław Żółkiewski Frederick R. Pleasants Joan Teer Jacobson Abdul Hamid II Miles Franklin Peter Becker Thomas R. Taylor Bryant M. Hanley, Jr. Terry Etherton Donald D. Harrington John XXII Sally Anderson Peter the Great William I of Württemberg Gerald Murphy Hussein Kamel of Egypt David Berg Vivian Hotchkiss Eleonora Gonzaga Therese of Saxe-Hildburghausen Arthur I. Appleton Seymour H. Knox II Peter Harry Carstensen Knud Højgaard Edward Marcus Edwin Binney Robert R. Rosenbaum Wilhelm I of Germany Gregory Kondos Otto Kallir Albert P. Strietmann Percy Moore Turner Riva Yares Charles F. Olney Jan Radlica Philip Campbell Curtis A. Conger Goodyear Ferdinand Mülhens Jakub Zadzik Reinhold Klika Herbert W. Ladd Faith Holsaert Nancy Hamon Natalia Clovis Ruth Corbett Cross August Wegmann Carlos Carulo Louis S. Cates Enric Serra Auqué Charles IV of Spain anonymous Olav V of Norway Naser al-Din Shah Qajar Roger J. Welter Everett F. Drumright George V Joel Coplin Dorothy C. Walker Susan S. Small Alma A. Konigslow Margarita Berg Onofre Garí i Torrent Josep Maria Garrut i Romà Walter P. Chrysler Jr. Martin and Nancy Melzer John of Saxony Alexander I of Yugoslavia Leo XIII James H. Clark Mr. and Mrs. Arthur W. Rogers Jerzy Ossoliński Michael Berman M. H. de Young William A. Small, Jr. Jack Balas Queen Victoria Johannes Rau Dennis J. Friedman Theodore M. Davis Donald Trump Frances M. Weidman Lorenz Anderman Arthur B. Adams Baldomero Giménez Rudolf Meimberg Margaret Kirkpatrick George II of Greece Thelma Kieckhefer Dan Leach Agnes Griffen Matthew Blacharski Frederick Augustus II of Saxony Theodor Heuss Mikołaj Kamieniecki John Rein Chauncey McCormick Laurence L. Shaw Erwin S. Barrie Madanjeet Singh Saidie May Blanchette Ferry Rockefeller
Donald Trump, Abdul Hamid II and Wilhelm II made a donation for atmost 1 art genre
Donald Trump Abdul Hamid II Wilhelm II
action atmost
action find_reverse_tuple_counts
relation donated by
type common name
type art genre
value 1
[{'concept': 'art genre'}, 'donated by', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:donated_by ?k . ?g rdf:type ontology:art_genre . ?k rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?d <= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can max number of people perform with ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?g ) { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?z ) WHERE { ?a property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?d } } . { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?b = ?g ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?g ) { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?z ) WHERE { ?a property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?d } } . { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?b = ?g ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Max number of people can perform on [ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?g ) { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?z ) WHERE { ?a property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?d } } . { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?b = ?g ) }
piano
Max number of people can perform on piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?g ) { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?z ) WHERE { ?a property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?d } } . { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?b = ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22686
P112
Q43229
USER
Which organizations were established by Donald Trump ?
(c(Q43229),P112,Q22686)
action filter_type
action find_reverse
entity Q22686
relation P112
type Q43229
[{'concept': 'Q43229'}, 'P112', 'Q22686']
SELECT DISTINCT ?y WHERE { ?y property:P112 resource:Q22686 . ?y rdf:type ontology:Q43229 }
Donald Trump
action filter_type
action find_reverse
entity Donald Trump
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Donald Trump']
SELECT DISTINCT ?y WHERE { ?y property:founder resource:Donald_Trump . ?y rdf:type ontology:organization }
[]
organization
Q7770555 Q2456392
SYSTEM
The Trump Entrepreneur Initiative, Trump Entertainment Resorts
Q7770555 Q2456392
(c(Q43229),P112,Q22686)
action filter_type
action find_reverse
entity Q22686
relation P112
type Q43229
[ANSWERS] were established by Donald Trump
[{'concept': 'Q43229'}, 'P112', 'Q22686']
SELECT DISTINCT ?y WHERE { ?y property:P112 resource:Q22686 . ?y rdf:type ontology:Q43229 }
The Trump Entrepreneur Initiative Trump Entertainment Resorts
The Trump Entrepreneur Initiative and Trump Entertainment Resorts were established by Donald Trump
The Trump Entrepreneur Initiative Trump Entertainment Resorts
action filter_type
action find_reverse
entity Donald Trump
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Donald Trump']
SELECT DISTINCT ?y WHERE { ?y property:founder resource:Donald_Trump . ?y rdf:type ontology:organization }
[]