Simple Question (Direct)
Simple Question
Q3853120
P641
Q349
USER
What was the sport that Maximiliano Faotto was a part of ?
(Q3853120,P641,c(Q349))
action filter_type
action find
entity Q3853120
relation P641
type Q349
['Q3853120', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q3853120 property:P641 ?i . ?i rdf:type ontology:Q349 }
Maximiliano Faotto
action filter_type
action find
entity Maximiliano Faotto
relation sport
type sport
['Maximiliano Faotto', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Maximiliano_Faotto property:sport ?i . ?i rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3853120,P641,c(Q349))
action filter_type
action find
entity Q3853120
relation P641
type Q349
The sport that Maximiliano Faotto was a part of was the [ANSWER]
['Q3853120', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q3853120 property:P641 ?i . ?i rdf:type ontology:Q349 }
association football
The sport that Maximiliano Faotto was a part of was the association football
association football
action filter_type
action find
entity Maximiliano Faotto
relation sport
type sport
['Maximiliano Faotto', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Maximiliano_Faotto property:sport ?i . ?i rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P495
Q1496967
USER
What is the country of origin of that sport ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?z WHERE { resource:Q2736 property:P495 ?z . ?z rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:association_football property:country_of_origin ?z . ?z rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
The country of origin of that sport is in [ANSWER]
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?z WHERE { resource:Q2736 property:P495 ?z . ?z rdf:type ontology:Q1496967 }
England
The country of origin of that sport is in England
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:association_football property:country_of_origin ?z . ?z rdf:type ontology:territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P840
Q1496967 Q2342494 Q166142
USER
Which territories are the narrative locations of lesser number of collectables and applications than that territory ?
(c(Q2342494)|c(Q166142),P840,c(Q1496967))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q21
relation P840
type Q2342494
type Q166142
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?k WHERE { { ?v property:P840 ?k . ?k rdf:type ontology:Q1496967 . ?v rdf:type ontology:Q166142 } UNION { ?v property:P840 ?k . ?v rdf:type ontology:Q2342494 . ?k rdf:type ontology:Q1496967 } } GROUP BY ?k } . FILTER ( ?q < ?u ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:P840 resource:Q21 . { { ?d rdf:type ontology:Q2342494 } UNION { ?d rdf:type ontology:Q166142 } } } } }
action less
action union
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity England
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?k WHERE { { ?v property:narrative_location ?k . ?k rdf:type ontology:territorial_entity . ?v rdf:type ontology:application } UNION { ?v property:narrative_location ?k . ?v rdf:type ontology:collectable . ?k rdf:type ontology:territorial_entity } } GROUP BY ?k } . FILTER ( ?q < ?u ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:narrative_location resource:England . { { ?d rdf:type ontology:collectable } UNION { ?d rdf:type ontology:application } } } } }
[]
territorial entity collectable application
Q2714126 Q2004038 Q101081
SYSTEM
Lapland, Perfection, Nevada, Provence
Q2714126 Q2004038 Q101081
(c(Q2342494)|c(Q166142),P840,c(Q1496967))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q21
relation P840
type Q2342494
type Q166142
[ANSWERS] are the narrative locations of lesser number of collectables and applications than that territory
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?k WHERE { { ?v property:P840 ?k . ?k rdf:type ontology:Q1496967 . ?v rdf:type ontology:Q166142 } UNION { ?v property:P840 ?k . ?v rdf:type ontology:Q2342494 . ?k rdf:type ontology:Q1496967 } } GROUP BY ?k } . FILTER ( ?q < ?u ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:P840 resource:Q21 . { { ?d rdf:type ontology:Q2342494 } UNION { ?d rdf:type ontology:Q166142 } } } } }
Lapland Perfection, Nevada Provence
Lapland, Perfection, Nevada and Provence are the narrative locations of lesser number of collectables and applications than that territory
Lapland Perfection, Nevada Provence
action less
action union
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity England
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?k WHERE { { ?v property:narrative_location ?k . ?k rdf:type ontology:territorial_entity . ?v rdf:type ontology:application } UNION { ?v property:narrative_location ?k . ?v rdf:type ontology:collectable . ?k rdf:type ontology:territorial_entity } } GROUP BY ?k } . FILTER ( ?q < ?u ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:narrative_location resource:England . { { ?d rdf:type ontology:collectable } UNION { ?d rdf:type ontology:application } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q393808
P641
Q349 Q12973014 Q502895
USER
How many sports did less number of sports teams or people participate in than Dog agility ?
(c(Q12973014)|c(Q502895),P641,c(Q349))
action count
action less
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q393808
relation P641
type Q12973014
type Q502895
[[{'concept': 'Q12973014'}, {'concept': 'Q502895'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?a property:P641 resource:Q393808 . { VALUES ( ?n ) { ( ontology:Q12973014 ) ( ontology:Q502895 ) } . ?a rdf:type ?n } } } . FILTER ( ?e < ?l ) . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?e ) WHERE { { ?c property:P641 ?y . ?y rdf:type ontology:Q349 . ?c rdf:type ontology:Q12973014 } UNION { ?c property:P641 ?y . ?c rdf:type ontology:Q502895 . ?y rdf:type ontology:Q349 } } GROUP BY ?y } }
Dog agility
action count
action less
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type common name
action count
action filter_multi_types
action find_reverse
entity Dog agility
relation sport
type sports team
type common name
[[{'concept': 'sports team'}, {'concept': 'common name'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?a property:sport resource:Dog_agility . { VALUES ( ?n ) { ( ontology:sports_team ) ( ontology:common_name ) } . ?a rdf:type ?n } } } . FILTER ( ?e < ?l ) . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?e ) WHERE { { ?c property:sport ?y . ?y rdf:type ontology:sport . ?c rdf:type ontology:sports_team } UNION { ?c property:sport ?y . ?c rdf:type ontology:common_name . ?y rdf:type ontology:sport } } GROUP BY ?y } }
[]
sport sports team common name
SYSTEM
42
Q2348250 Q193387 Q4808504 Q3844480 Q809831 Q1575010 Q244700 Q1497658 Q192832 Q601972 Q27672886 Q338208 Q148636 Q2887217 Q1050588 Q592031 Q1345388 Q1866478 Q2302906 Q231200 Q990637 Q1358545 Q212434 Q61065 Q4429020 Q14300548 Q4245261 Q3177899 Q4347112 Q2167372 Q1078835 Q1899731 Q943526 Q1063445 Q3325635 Q2701632 Q1875777 Q14405929 Q1129021 Q17988507 Q1784241 Q1188693
(c(Q12973014)|c(Q502895),P641,c(Q349))
action count
action less
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q393808
relation P641
type Q12973014
type Q502895
[ANSWER]
[[{'concept': 'Q12973014'}, {'concept': 'Q502895'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?a property:P641 resource:Q393808 . { VALUES ( ?n ) { ( ontology:Q12973014 ) ( ontology:Q502895 ) } . ?a rdf:type ?n } } } . FILTER ( ?e < ?l ) . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?e ) WHERE { { ?c property:P641 ?y . ?y rdf:type ontology:Q349 . ?c rdf:type ontology:Q12973014 } UNION { ?c property:P641 ?y . ?c rdf:type ontology:Q502895 . ?y rdf:type ontology:Q349 } } GROUP BY ?y } }
team time trial croquet snocross rink bandy BASE jumping para rowing Ultimate memory sport paintball Camogie Flying disc games giant slalom skiing Kabaddi women's basketball fistball wingsuit flying greyhound racing American handball Box lacrosse netball Broomball arena football Olympic sport water sport competition aerobatics skating touring car racing bowling strength athletics fell running Powerchair Football Frisian handball Castell nine-ball Valencian trinquet muggle quidditch air racing high diving super giant slalom skiing women's tennis korbball mind sport
42
action count
action less
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type common name
action count
action filter_multi_types
action find_reverse
entity Dog agility
relation sport
type sports team
type common name
[[{'concept': 'sports team'}, {'concept': 'common name'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?a property:sport resource:Dog_agility . { VALUES ( ?n ) { ( ontology:sports_team ) ( ontology:common_name ) } . ?a rdf:type ?n } } } . FILTER ( ?e < ?l ) . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?e ) WHERE { { ?c property:sport ?y . ?y rdf:type ontology:sport . ?c rdf:type ontology:sports_team } UNION { ?c property:sport ?y . ?c rdf:type ontology:common_name . ?y rdf:type ontology:sport } } GROUP BY ?y } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q159992
P641
Q349 Q12973014 Q502895
USER
And how about surfing?
(c(Q12973014)|c(Q502895),P641,c(Q349))
action count
action less
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q159992
relation P641
type Q12973014
type Q502895
[[{'concept': 'Q12973014'}, {'concept': 'Q502895'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?j ) WHERE { { ?b rdf:type ontology:Q349 . ?z rdf:type ontology:Q12973014 . ?z property:P641 ?b } UNION { ?z property:P641 ?b . ?b rdf:type ontology:Q349 . ?z rdf:type ontology:Q502895 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:P641 resource:Q159992 . { ?x rdf:type ?h . VALUES ( ?h ) { ( ontology:Q12973014 ) ( ontology:Q502895 ) } } } } . FILTER ( ?j < ?t ) }
surfing
action count
action less
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type common name
action count
action filter_multi_types
action find_reverse
entity surfing
relation sport
type sports team
type common name
[[{'concept': 'sports team'}, {'concept': 'common name'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?j ) WHERE { { ?b rdf:type ontology:sport . ?z rdf:type ontology:sports_team . ?z property:sport ?b } UNION { ?z property:sport ?b . ?b rdf:type ontology:sport . ?z rdf:type ontology:common_name } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:sport resource:surfing . { ?x rdf:type ?h . VALUES ( ?h ) { ( ontology:sports_team ) ( ontology:common_name ) } } } } . FILTER ( ?j < ?t ) }
[]
sport sports team common name
SYSTEM
148
Q1109032 Q170737 Q114466 Q500050 Q2348250 Q3337306 Q193387 Q171038 Q191051 Q17163326 Q4808504 Q3844480 Q809831 Q1575010 Q206763 Q244700 Q1497658 Q902378 Q1761866 Q192832 Q1148620 Q601972 Q46241 Q192937 Q3372565 Q208607 Q188966 Q961015 Q328716 Q131359 Q27672886 Q22857 Q657196 Q338208 Q738622 Q148636 Q136851 Q2887217 Q599204 Q690676 Q31897 Q74542 Q1050588 Q1758324 Q1457676 Q592031 Q1345388 Q102843 Q754586 Q1682809 Q40561 Q42486 Q1295867 Q2483334 Q2922870 Q1143202 Q850256 Q204632 Q627165 Q393808 Q213796 Q1866478 Q182570 Q2302906 Q989473 Q1194269 Q2497700 Q231200 Q990637 Q105674 Q215862 Q212845 Q1358545 Q1757181 Q1145338 Q2250158 Q212434 Q43450 Q6034982 Q12834857 Q61065 Q2284014 Q4429020 Q2413978 Q13108218 Q4851143 Q14300548 Q36908 Q1081491 Q483693 Q389654 Q185851 Q4245261 Q624161 Q327742 Q213711 Q271277 Q3177899 Q376040 Q4347112 Q5465793 Q797108 Q963312 Q2167372 Q130949 Q535116 Q2360406 Q20856109 Q16996906 Q1078835 Q838781 Q26787631 Q1899731 Q943526 Q647559 Q1541373 Q606060 Q1150656 Q1063445 Q6140386 Q3325635 Q207703 Q2701632 Q1875777 Q1358925 Q1748406 Q667692 Q183018 Q1622659 Q1421697 Q201252 Q14405929 Q1129021 Q1199515 Q178678 Q17988507 Q6350707 Q3924425 Q3341285 Q210778 Q192420 Q1784241 Q1188693 Q204686 Q1055193 Q124100 Q2440459 Q429006
(c(Q12973014)|c(Q502895),P641,c(Q349))
action count
action less
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q159992
relation P641
type Q12973014
type Q502895
[ANSWER]
[[{'concept': 'Q12973014'}, {'concept': 'Q502895'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?j ) WHERE { { ?b rdf:type ontology:Q349 . ?z rdf:type ontology:Q12973014 . ?z property:P641 ?b } UNION { ?z property:P641 ?b . ?b rdf:type ontology:Q349 . ?z rdf:type ontology:Q502895 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:P641 resource:Q159992 . { ?x rdf:type ?h . VALUES ( ?h ) { ( ontology:Q12973014 ) ( ontology:Q502895 ) } } } } . FILTER ( ?j < ?t ) }
college football long jump mixed martial arts cross country running team time trial yachting croquet softball windsurfing motorcycle racing snocross rink bandy BASE jumping para rowing floorball Ultimate memory sport equestrian sport puroresu paintball Finswimming Camogie drag racing korfball Kettlebell lifting kung fu contract bridge women's boxing motorcycle sport professional wrestling Flying disc games climbing medley swimming giant slalom skiing dancesport Kabaddi curling women's basketball rallycross canoe polo natural track luge para-alpine skiing fistball stock car racing rackets wingsuit flying greyhound racing tug of war racquetball pair skating sumo wrestling pesäpallo Valencian pilota boxe roque shinty Gaelic football Harri-jasotze Dog agility powerlifting American handball discus throw Box lacrosse international draughts harness racing Aizkolaritza netball Broomball running motocross Basque pelota arena football paralympic athletics Adventure racing five-a-side football Olympic sport gymnastics Inline skating strength training water sport Contact sport competition aerobatics paralympic swimming gymnastics balkline and straight rail skating mountaineering football parkour Greco-Roman wrestling lacrosse touring car racing gliding relay race hurling Savate bowling wakeboarding strength athletics CP football jeu de paume Sledge hockey fell running skiing beach handball real tennis canoeing Indoor American football Powerchair Football eventing K-1 Frisian handball Castell Goalball sport climbing women's association football wheelchair curling nine-ball Kitō-ryū Valencian trinquet rodeo muggle quidditch air racing speed skiing roller hockey (quad) Nordic walking bandy hockey Chilean rodeo pankration high diving super giant slalom skiing formula racing kick boxing women's tennis Kalari combined track and field events cue sports beach soccer Kart racing korbball mind sport winter sport pallone bodybuilding wheelchair fencing Duathlon
148
action count
action less
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type common name
action count
action filter_multi_types
action find_reverse
entity surfing
relation sport
type sports team
type common name
[[{'concept': 'sports team'}, {'concept': 'common name'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?j ) WHERE { { ?b rdf:type ontology:sport . ?z rdf:type ontology:sports_team . ?z property:sport ?b } UNION { ?z property:sport ?b . ?b rdf:type ontology:sport . ?z rdf:type ontology:common_name } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:sport resource:surfing . { ?x rdf:type ?h . VALUES ( ?h ) { ( ontology:sports_team ) ( ontology:common_name ) } } } } . FILTER ( ?j < ?t ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by max number of people ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?f ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?d } } . { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?k ) WHERE { ?r property:P1303 ?q . ?r rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } . FILTER ( ?k = ?f ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?f ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?d } } . { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?k ) WHERE { ?r property:instrument ?q . ?r rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } . FILTER ( ?k = ?f ) }
[]
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
[ANSWER] is played by max number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?f ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?d } } . { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?k ) WHERE { ?r property:P1303 ?q . ?r rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } . FILTER ( ?k = ?f ) }
piano
Piano is played by max number of people
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?f ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?d } } . { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?k ) WHERE { ?r property:instrument ?q . ?r rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } . FILTER ( ?k = ?f ) }
[]
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 ?z WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?a ) { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?p } } . { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?t ) WHERE { ?z rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 . ?g property:P1303 ?z } GROUP BY ?z } . FILTER ( ?t = ?a ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?a ) { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?p } } . { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?t ) WHERE { ?z rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name . ?g property:instrument ?z } GROUP BY ?z } . FILTER ( ?t = ?a ) }
[]
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 ?z WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?a ) { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?p } } . { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?t ) WHERE { ?z rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 . ?g property:P1303 ?z } GROUP BY ?z } . FILTER ( ?t = ?a ) }
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 ?z WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?a ) { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?p } } . { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?t ) WHERE { ?z rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name . ?g property:instrument ?z } GROUP BY ?z } . FILTER ( ?t = ?a ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5994
P61
Q502895
USER
Who discovered or invented that musical instrument ?
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q5994 property:P61 ?n }
piano
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:piano property:discoverer_or_inventor ?n }
[]
common name
Q301597
SYSTEM
Bartolomeo Cristofori
Q301597
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
[ANSWER] discovered or invented that musical instrument
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q5994 property:P61 ?n }
Bartolomeo Cristofori
Bartolomeo Cristofori discovered or invented that musical instrument
Bartolomeo Cristofori
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:piano property:discoverer_or_inventor ?n }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4944753
Q502895
USER
And what about (20083) 1994 GE?
(Q4944753,P61,c(Q502895))
action filter_type
action find
entity Q4944753
relation P61
type Q502895
['Q4944753', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q4944753 property:P61 ?k . ?k rdf:type ontology:Q502895 }
(20083) 1994 GE
action filter_type
action find
entity (20083) 1994 GE
relation discoverer or inventor
type common name
['(20083) 1994 GE', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:(20083)_1994_GE property:discoverer_or_inventor ?k . ?k rdf:type ontology:common_name }
[]
common name
Q457312
SYSTEM
Takao Kobayashi
Q457312
(Q4944753,P61,c(Q502895))
action filter_type
action find
entity Q4944753
relation P61
type Q502895
[ANSWER]
['Q4944753', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q4944753 property:P61 ?k . ?k rdf:type ontology:Q502895 }
Takao Kobayashi
Takao Kobayashi
action filter_type
action find
entity (20083) 1994 GE
relation discoverer or inventor
type common name
['(20083) 1994 GE', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:(20083)_1994_GE property:discoverer_or_inventor ?k . ?k rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q457312 Q6304901
P61
Q17444909
USER
Was (23780) 1998 QT10 invented or discovered by that person ?
(Q6304901,P61,Q457312)
action is_in
entity Q6304901
action find
entity Q457312
relation P61
['Q6304901', 'P61', 'Q457312']
ASK WHERE { resource:Q457312 property:P61 resource:Q6304901 }
Takao Kobayashi (23780) 1998 QT10
action is_in
entity (23780) 1998 QT10
action find
entity Takao Kobayashi
relation discoverer or inventor
['(23780) 1998 QT10', 'discoverer or inventor', 'Takao Kobayashi']
ASK WHERE { resource:Takao_Kobayashi property:discoverer_or_inventor resource:(23780)_1998_QT10 }
[]
astronomical object type
SYSTEM
NO
(Q6304901,P61,Q457312)
action is_in
entity Q6304901
action find
entity Q457312
relation P61
[ANSWER]
['Q6304901', 'P61', 'Q457312']
ASK WHERE { resource:Q457312 property:P61 resource:Q6304901 }
No
action is_in
entity (23780) 1998 QT10
action find
entity Takao Kobayashi
relation discoverer or inventor
['(23780) 1998 QT10', 'discoverer or inventor', 'Takao Kobayashi']
ASK WHERE { resource:Takao_Kobayashi property:discoverer_or_inventor resource:(23780)_1998_QT10 }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q21 Q1235574 Q532678
P17
Q15617994
USER
Is England present in Qingcheng District and Grabfeld, Thuringia ?
(Q21,P17,Q1235574) (Q21,P17,Q532678)
action is_in
entity Q21
action intersection
action find_reverse
entity Q1235574
relation P17
action find_reverse
entity Q532678
relation P17
['Q21', 'P17', 'Q1235574'] ['Q21', 'P17', 'Q532678']
ASK WHERE { resource:Q21 property:P17 resource:Q532678 . resource:Q21 property:P17 resource:Q1235574 }
England Qingcheng District Grabfeld, Thuringia
action is_in
entity England
action intersection
action find_reverse
entity Qingcheng District
relation country
action find_reverse
entity Grabfeld, Thuringia
relation country
['England', 'country', 'Qingcheng District'] ['England', 'country', 'Grabfeld, Thuringia']
ASK WHERE { resource:England property:country resource:Grabfeld,_Thuringia . resource:England property:country resource:Qingcheng_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q21,P17,Q1235574) (Q21,P17,Q532678)
action is_in
entity Q21
action intersection
action find_reverse
entity Q1235574
relation P17
action find_reverse
entity Q532678
relation P17
[ANSWER]
['Q21', 'P17', 'Q1235574'] ['Q21', 'P17', 'Q532678']
ASK WHERE { resource:Q21 property:P17 resource:Q532678 . resource:Q21 property:P17 resource:Q1235574 }
No
action is_in
entity England
action intersection
action find_reverse
entity Qingcheng District
relation country
action find_reverse
entity Grabfeld, Thuringia
relation country
['England', 'country', 'Qingcheng District'] ['England', 'country', 'Grabfeld, Thuringia']
ASK WHERE { resource:England property:country resource:Grabfeld,_Thuringia . resource:England property:country resource:Qingcheng_District }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21
P921
Q386724
USER
Which work was primarily based on England ?
(c(Q386724),P921,Q21)
action filter_type
action find_reverse
entity Q21
relation P921
type Q386724
[{'concept': 'Q386724'}, 'P921', 'Q21']
SELECT DISTINCT ?k WHERE { ?k property:P921 resource:Q21 . ?k rdf:type ontology:Q386724 }
England
action filter_type
action find_reverse
entity England
relation main subject
type work
[{'concept': 'work'}, 'main subject', 'England']
SELECT DISTINCT ?k WHERE { ?k property:main_subject resource:England . ?k rdf:type ontology:work }
[]
work
Q16822863
SYSTEM
Beauties of England and Wales
Q16822863
(c(Q386724),P921,Q21)
action filter_type
action find_reverse
entity Q21
relation P921
type Q386724
[ANSWER] was primarily based on England
[{'concept': 'Q386724'}, 'P921', 'Q21']
SELECT DISTINCT ?k WHERE { ?k property:P921 resource:Q21 . ?k rdf:type ontology:Q386724 }
Beauties of England and Wales
Beauties of England and Wales was primarily based on England
Beauties of England and Wales
action filter_type
action find_reverse
entity England
relation main subject
type work
[{'concept': 'work'}, 'main subject', 'England']
SELECT DISTINCT ?k WHERE { ?k property:main_subject resource:England . ?k rdf:type ontology:work }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21
P30
Q2221906
USER
Where is that territory situated ?
(Q16822863,P30,c(Q2221906))
action filter_type
action find
entity Q21
relation P30
type Q2221906
['Q16822863', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { resource:Q21 property:P30 ?q . ?q rdf:type ontology:Q2221906 }
England
action filter_type
action find
entity England
relation continent
type geographic location
['Beauties of England and Wales', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { resource:England property:continent ?q . ?q rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q16822863,P30,c(Q2221906))
action filter_type
action find
entity Q21
relation P30
type Q2221906
That territory is situated in [ANSWER]
['Q16822863', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { resource:Q21 property:P30 ?q . ?q rdf:type ontology:Q2221906 }
Europe
That territory is situated in Europe
Europe
action filter_type
action find
entity England
relation continent
type geographic location
['Beauties of England and Wales', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { resource:England property:continent ?q . ?q rdf:type ontology:geographic_location }
[]