Simple Question (Direct)
Simple Question
Q123897
P512
Q3412758
USER
Which qualification does Georgi Schischkoff hold ?
(Q123897,P512,c(Q3412758))
action filter_type
action find
entity Q123897
relation P512
type Q3412758
['Q123897', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?p WHERE { resource:Q123897 property:P512 ?p . ?p rdf:type ontology:Q3412758 }
Georgi Schischkoff
action filter_type
action find
entity Georgi Schischkoff
relation academic degree
type qualification
['Georgi Schischkoff', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?p WHERE { resource:Georgi_Schischkoff property:academic_degree ?p . ?p rdf:type ontology:qualification }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q123897,P512,c(Q3412758))
action filter_type
action find
entity Q123897
relation P512
type Q3412758
Georgi Schischkoff holds the [ANSWER]
['Q123897', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?p WHERE { resource:Q123897 property:P512 ?p . ?p rdf:type ontology:Q3412758 }
doctoral degree
Georgi Schischkoff holds the doctoral degree
doctoral degree
action filter_type
action find
entity Georgi Schischkoff
relation academic degree
type qualification
['Georgi Schischkoff', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?p WHERE { resource:Georgi_Schischkoff property:academic_degree ?p . ?p rdf:type ontology:qualification }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q123897
P19
Q56061
USER
Which administrative territory was Georgi Schischkoff born at ?
(Q123897,P19,c(Q56061))
action filter_type
action find
entity Q123897
relation P19
type Q56061
['Q123897', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q123897 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Georgi Schischkoff
action filter_type
action find
entity Georgi Schischkoff
relation place of birth
type administrative territorial entity
['Georgi Schischkoff', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Georgi_Schischkoff property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q405317
SYSTEM
Nova Zagora
Q405317
(Q123897,P19,c(Q56061))
action filter_type
action find
entity Q123897
relation P19
type Q56061
Georgi Schischkoff was born in [ANSWER]
['Q123897', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q123897 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Nova Zagora
Georgi Schischkoff was born in Nova Zagora
Nova Zagora
action filter_type
action find
entity Georgi Schischkoff
relation place of birth
type administrative territorial entity
['Georgi Schischkoff', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Georgi_Schischkoff property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q123897
P166
Q618779
USER
What was awarded to that person ?
(Q405317,P166,c(Q618779))
action filter_type
action find
entity Q123897
relation P166
type Q618779
['Q405317', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?f WHERE { resource:Q123897 property:P166 ?f . ?f rdf:type ontology:Q618779 }
Georgi Schischkoff
action filter_type
action find
entity Georgi Schischkoff
relation award received
type award
['Nova Zagora', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?f WHERE { resource:Georgi_Schischkoff property:award_received ?f . ?f rdf:type ontology:award }
[]
award
Q10905380
SYSTEM
Cross of the Order of Merit of the Federal Republic of Germany
Q10905380
(Q405317,P166,c(Q618779))
action filter_type
action find
entity Q123897
relation P166
type Q618779
Germany [ANSWER] was awarded to that person
['Q405317', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?f WHERE { resource:Q123897 property:P166 ?f . ?f rdf:type ontology:Q618779 }
Cross of the Order of Merit of the Federal Republic of Germany
Germany Cross of the Order of Merit of the Federal Republic of Germany was awarded to that person
Cross of the Order of Merit of the Federal Republic of Germany
action filter_type
action find
entity Georgi Schischkoff
relation award received
type award
['Nova Zagora', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?f WHERE { resource:Georgi_Schischkoff property:award_received ?f . ?f rdf:type ontology:award }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q10905380 Q183
P17
Q1048835
USER
Is that award situated in Germany ?
(Q10905380,P17,Q183)
action is_in
entity Q183
action find
entity Q10905380
relation P17
['Q10905380', 'P17', 'Q183']
ASK WHERE { resource:Q10905380 property:P17 resource:Q183 }
Cross of the Order of Merit of the Federal Republic of Germany Germany
action is_in
entity Germany
action find
entity Cross of the Order of Merit of the Federal Republic of Germany
relation country
['Cross of the Order of Merit of the Federal Republic of Germany', 'country', 'Germany']
ASK WHERE { resource:Cross_of_the_Order_of_Merit_of_the_Federal_Republic_of_Germany property:country resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q10905380,P17,Q183)
action is_in
entity Q183
action find
entity Q10905380
relation P17
[ANSWER]
['Q10905380', 'P17', 'Q183']
ASK WHERE { resource:Q10905380 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Cross of the Order of Merit of the Federal Republic of Germany
relation country
['Cross of the Order of Merit of the Federal Republic of Germany', 'country', 'Germany']
ASK WHERE { resource:Cross_of_the_Order_of_Merit_of_the_Federal_Republic_of_Germany property:country resource:Germany }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q884
P1346
Q16510064
USER
Which sporting event was won by South Korea ?
(c(Q16510064),P1346,Q884)
action filter_type
action find_reverse
entity Q884
relation P1346
type Q16510064
[{'concept': 'Q16510064'}, 'P1346', 'Q884']
SELECT DISTINCT ?a WHERE { ?a property:P1346 resource:Q884 . ?a rdf:type ontology:Q16510064 }
South Korea
action filter_type
action find_reverse
entity South Korea
relation winner
type sporting event
[{'concept': 'sporting event'}, 'winner', 'South Korea']
SELECT DISTINCT ?a WHERE { ?a property:winner resource:South_Korea . ?a rdf:type ontology:sporting_event }
[]
sporting event
Q26208357
SYSTEM
Archery at the 2016 Summer Olympics – Men's team
Q26208357
(c(Q16510064),P1346,Q884)
action filter_type
action find_reverse
entity Q884
relation P1346
type Q16510064
The [ANSWER] was won by South Korea
[{'concept': 'Q16510064'}, 'P1346', 'Q884']
SELECT DISTINCT ?a WHERE { ?a property:P1346 resource:Q884 . ?a rdf:type ontology:Q16510064 }
Archery at the 2016 Summer Olympics – Men's team
The Archery at the 2016 Summer Olympics – Men's team was won by South Korea
Archery at the 2016 Summer Olympics – Men's team
action filter_type
action find_reverse
entity South Korea
relation winner
type sporting event
[{'concept': 'sporting event'}, 'winner', 'South Korea']
SELECT DISTINCT ?a WHERE { ?a property:winner resource:South_Korea . ?a rdf:type ontology:sporting_event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26208357
P1344
Q502895
USER
Who participated in that sporting event ?
(c(Q502895),P1344,Q26208357)
action filter_type
action find_reverse
entity Q26208357
relation P1344
type Q502895
[{'concept': 'Q502895'}, 'P1344', 'Q26208357']
SELECT DISTINCT ?y WHERE { ?y property:P1344 resource:Q26208357 . ?y rdf:type ontology:Q502895 }
Archery at the 2016 Summer Olympics – Men's team
action filter_type
action find_reverse
entity Archery at the 2016 Summer Olympics – Men's team
relation participant of
type common name
[{'concept': 'common name'}, 'participant of', "Archery at the 2016 Summer Olympics – Men's team"]
SELECT DISTINCT ?y WHERE { ?y property:participant_of resource:Archery_at_the_2016_Summer_Olympics_–_Men's_team . ?y rdf:type ontology:common_name }
[]
common name
Q1706970 Q1705848 Q1156472
SYSTEM
Jake Kaminski, Taylor Worth, Brady Ellison
Q1705848 Q1706970 Q21066098 Q21066603 Q7384603 Q11739253 Q15222017 Q21066506 Q1156472
(c(Q502895),P1344,Q26208357)
action filter_type
action find_reverse
entity Q26208357
relation P1344
type Q502895
[ANSWERS] participated in that sporting event
[{'concept': 'Q502895'}, 'P1344', 'Q26208357']
SELECT DISTINCT ?y WHERE { ?y property:P1344 resource:Q26208357 . ?y rdf:type ontology:Q502895 }
Taylor Worth Jake Kaminski Alec Potts Zach Garrett Ryan Tyack Kim Woo-Jin Lee Seung-yun Ku Bon-chan Brady Ellison
Jake Kaminski, Taylor Worth and Brady Ellison participated in that sporting event
Jake Kaminski Taylor Worth Brady Ellison
action filter_type
action find_reverse
entity Archery at the 2016 Summer Olympics – Men's team
relation participant of
type common name
[{'concept': 'common name'}, 'participant of', "Archery at the 2016 Summer Olympics – Men's team"]
SELECT DISTINCT ?y WHERE { ?y property:participant_of resource:Archery_at_the_2016_Summer_Olympics_–_Men's_team . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q101229
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories have adopted around the same number of people and holidays as patron saint as Martinengo ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q101229
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?x ) WHERE { { ?i property:P417 ?p . ?i rdf:type ontology:Q56061 . ?p rdf:type ontology:Q502895 } UNION { ?i property:P417 ?p . ?i rdf:type ontology:Q56061 . ?p rdf:type ontology:Q1445650 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { { ?g rdf:type ontology:Q1445650 } UNION { ?g rdf:type ontology:Q502895 } } . resource:Q101229 property:P417 ?g } } . FILTER ( ?x = ?e ) }
Martinengo
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Martinengo
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?x ) WHERE { { ?i property:patron_saint ?p . ?i rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:common_name } UNION { ?i property:patron_saint ?p . ?i rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:holiday } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { { ?g rdf:type ontology:holiday } UNION { ?g rdf:type ontology:common_name } } . resource:Martinengo property:patron_saint ?g } } . FILTER ( ?x = ?e ) }
[]
common name holiday administrative territorial entity
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q101229
relation P417
type Q502895
type Q1445650
[ANSWERS] have adopted around the same number of people and holidays as patron saint as Martinengo
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?x ) WHERE { { ?i property:P417 ?p . ?i rdf:type ontology:Q56061 . ?p rdf:type ontology:Q502895 } UNION { ?i property:P417 ?p . ?i rdf:type ontology:Q56061 . ?p rdf:type ontology:Q1445650 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { { ?g rdf:type ontology:Q1445650 } UNION { ?g rdf:type ontology:Q502895 } } . resource:Q101229 property:P417 ?g } } . FILTER ( ?x = ?e ) }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
Moscow, Madrid and Milan have adopted around the same number of people and holidays as patron saint as Martinengo
Moscow Madrid Milan
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Martinengo
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?x ) WHERE { { ?i property:patron_saint ?p . ?i rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:common_name } UNION { ?i property:patron_saint ?p . ?i rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:holiday } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { { ?g rdf:type ontology:holiday } UNION { ?g rdf:type ontology:common_name } } . resource:Martinengo property:patron_saint ?g } } . FILTER ( ?x = ?e ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q57755 Q2807
P190 P937
Q56061
USER
Which administrative territories are partner towns of Madrid and are the work locations of Matthias Erzberger ?
AND((Q2807,P190,c(Q56061)), (Q57755,P937,c(Q56061)))
action filter_type
action intersection
action find
entity Q2807
relation P190
action find
entity Q57755
relation P937
type Q56061
{'AND': [['Q2807', 'P190', {'concept': 'Q56061'}], ['Q57755', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { resource:Q2807 property:P190 ?v . resource:Q57755 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Matthias Erzberger Madrid
action filter_type
action intersection
action find
entity Madrid
relation sister city
action find
entity Matthias Erzberger
relation work location
type administrative territorial entity
{'AND': [['Madrid', 'sister city', {'concept': 'administrative territorial entity'}], ['Matthias Erzberger', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Madrid property:sister_city ?v . resource:Matthias_Erzberger property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
AND((Q2807,P190,c(Q56061)), (Q57755,P937,c(Q56061)))
action filter_type
action intersection
action find
entity Q2807
relation P190
action find
entity Q57755
relation P937
type Q56061
[ANSWER] is partner towns of Madrid and is the work locations of Matthias Erzberger
{'AND': [['Q2807', 'P190', {'concept': 'Q56061'}], ['Q57755', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { resource:Q2807 property:P190 ?v . resource:Q57755 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Berlin
Berlin is partner towns of Madrid and is the work locations of Matthias Erzberger
Berlin
action filter_type
action intersection
action find
entity Madrid
relation sister city
action find
entity Matthias Erzberger
relation work location
type administrative territorial entity
{'AND': [['Madrid', 'sister city', {'concept': 'administrative territorial entity'}], ['Matthias Erzberger', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Madrid property:sister_city ?v . resource:Matthias_Erzberger property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q57755
P1196
Q1914636
USER
What situation did that person die in ?
(Q64,P1196,c(Q1914636))
action filter_type
action find
entity Q57755
relation P1196
type Q1914636
['Q64', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?z WHERE { resource:Q57755 property:P1196 ?z . ?z rdf:type ontology:Q1914636 }
Matthias Erzberger
action filter_type
action find
entity Matthias Erzberger
relation manner of death
type activity
['Berlin', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?z WHERE { resource:Matthias_Erzberger property:manner_of_death ?z . ?z rdf:type ontology:activity }
[]
activity
Q149086
SYSTEM
homicide
Q149086
(Q64,P1196,c(Q1914636))
action filter_type
action find
entity Q57755
relation P1196
type Q1914636
That person died in [ANSWER]
['Q64', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?z WHERE { resource:Q57755 property:P1196 ?z . ?z rdf:type ontology:Q1914636 }
homicide
That person died in homicide
homicide
action filter_type
action find
entity Matthias Erzberger
relation manner of death
type activity
['Berlin', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?z WHERE { resource:Matthias_Erzberger property:manner_of_death ?z . ?z rdf:type ontology:activity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1196
Q636497 Q2088357
USER
How many stock characters and musical ensembles died as that activity ?
(c(Q636497),P1196,Q149086) (c(Q2088357),P1196,Q149086) (c(Q636497),P1196,Q149086) (c(Q2088357),P1196,Q149086)
action count
action union
action filter_type
action find_reverse
entity Q149086
relation P1196
type Q636497
action filter_type
action find_reverse
entity Q149086
relation P1196
type Q2088357
[{'concept': 'Q636497'}, 'P1196', 'Q149086'] [{'concept': 'Q2088357'}, 'P1196', 'Q149086'] [{'concept': 'Q636497'}, 'P1196', 'Q149086'] [{'concept': 'Q2088357'}, 'P1196', 'Q149086']
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { ?l property:P1196 resource:Q149086 . ?l rdf:type ontology:Q2088357 } UNION { ?l property:P1196 resource:Q149086 . ?l rdf:type ontology:Q636497 } }
action count
action union
action filter_type
action find_reverse
entity homicide
relation manner of death
type stock character
action filter_type
action find_reverse
entity homicide
relation manner of death
type musical ensemble
[{'concept': 'stock character'}, 'manner of death', 'homicide'] [{'concept': 'musical ensemble'}, 'manner of death', 'homicide'] [{'concept': 'stock character'}, 'manner of death', 'homicide'] [{'concept': 'musical ensemble'}, 'manner of death', 'homicide']
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { ?l property:manner_of_death resource:homicide . ?l rdf:type ontology:musical_ensemble } UNION { ?l property:manner_of_death resource:homicide . ?l rdf:type ontology:stock_character } }
[]
stock character musical ensemble
SYSTEM
1 stock characters and 5 musical ensembles
Q5005084 Q7751225 Q1251487 Q7776650 Q5318666 Q8067551
(c(Q636497),P1196,Q149086) (c(Q2088357),P1196,Q149086) (c(Q636497),P1196,Q149086) (c(Q2088357),P1196,Q149086)
action count
action union
action filter_type
action find_reverse
entity Q149086
relation P1196
type Q636497
action filter_type
action find_reverse
entity Q149086
relation P1196
type Q2088357
[ANSWER]
[{'concept': 'Q636497'}, 'P1196', 'Q149086'] [{'concept': 'Q2088357'}, 'P1196', 'Q149086'] [{'concept': 'Q636497'}, 'P1196', 'Q149086'] [{'concept': 'Q2088357'}, 'P1196', 'Q149086']
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { ?l property:P1196 resource:Q149086 . ?l rdf:type ontology:Q2088357 } UNION { ?l property:P1196 resource:Q149086 . ?l rdf:type ontology:Q636497 } }
Bêlit The Miami Showband Double Trouble The Yellow Dogs Dyke and the Blazers Zayda Y Los Culpables
1 stock characters and 5 musical ensembles
action count
action union
action filter_type
action find_reverse
entity homicide
relation manner of death
type stock character
action filter_type
action find_reverse
entity homicide
relation manner of death
type musical ensemble
[{'concept': 'stock character'}, 'manner of death', 'homicide'] [{'concept': 'musical ensemble'}, 'manner of death', 'homicide'] [{'concept': 'stock character'}, 'manner of death', 'homicide'] [{'concept': 'musical ensemble'}, 'manner of death', 'homicide']
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { ?l property:manner_of_death resource:homicide . ?l rdf:type ontology:musical_ensemble } UNION { ?l property:manner_of_death resource:homicide . ?l rdf:type ontology:stock_character } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P452
Q1914636 Q1269299
USER
Which business organizations are part of the industry max number of activities ?
(c(Q1269299),P452,c(Q1914636))
action argmax
action find_tuple_counts
relation P452
type Q1269299
type Q1914636
[{'concept': 'Q1269299'}, 'P452', {'concept': 'Q1914636'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?y ) { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?g ) WHERE { ?a property:P452 ?s . ?a rdf:type ontology:Q1269299 . ?s rdf:type ontology:Q1914636 } GROUP BY ?a } } . { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?h ) WHERE { ?b property:P452 ?e . ?b rdf:type ontology:Q1269299 . ?e rdf:type ontology:Q1914636 } GROUP BY ?b } . FILTER ( ?h = ?y ) }
action argmax
action find_tuple_counts
relation industry
type type of business entity
type activity
[{'concept': 'type of business entity'}, 'industry', {'concept': 'activity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?y ) { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?g ) WHERE { ?a property:industry ?s . ?a rdf:type ontology:type_of_business_entity . ?s rdf:type ontology:activity } GROUP BY ?a } } . { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?h ) WHERE { ?b property:industry ?e . ?b rdf:type ontology:type_of_business_entity . ?e rdf:type ontology:activity } GROUP BY ?b } . FILTER ( ?h = ?y ) }
[]
activity type of business entity
Q53247 Q62621 Q193412
SYSTEM
Panasonic, Canon Inc., Texas Instruments
Q62621 Q463094 Q7433758 Q53247 Q1491819 Q193412
(c(Q1269299),P452,c(Q1914636))
action argmax
action find_tuple_counts
relation P452
type Q1269299
type Q1914636
[ANSWERS] are part of the industry max number of activities
[{'concept': 'Q1269299'}, 'P452', {'concept': 'Q1914636'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?y ) { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?g ) WHERE { ?a property:P452 ?s . ?a rdf:type ontology:Q1269299 . ?s rdf:type ontology:Q1914636 } GROUP BY ?a } } . { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?h ) WHERE { ?b property:P452 ?e . ?b rdf:type ontology:Q1269299 . ?e rdf:type ontology:Q1914636 } GROUP BY ?b } . FILTER ( ?h = ?y ) }
Canon Inc. Foxconn Scientific Games Corporation Panasonic Galenica Texas Instruments
Panasonic, Canon Inc. and Texas Instruments are part of the industry max number of activities
Panasonic Canon Inc. Texas Instruments
action argmax
action find_tuple_counts
relation industry
type type of business entity
type activity
[{'concept': 'type of business entity'}, 'industry', {'concept': 'activity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?y ) { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?g ) WHERE { ?a property:industry ?s . ?a rdf:type ontology:type_of_business_entity . ?s rdf:type ontology:activity } GROUP BY ?a } } . { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?h ) WHERE { ?b property:industry ?e . ?b rdf:type ontology:type_of_business_entity . ?e rdf:type ontology:activity } GROUP BY ?b } . FILTER ( ?h = ?y ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2807
P1376
Q1048835
USER
Which political territory has Madrid as its capital ?
(Q2807,P1376,c(Q1048835))
action filter_type
action find
entity Q2807
relation P1376
type Q1048835
['Q2807', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q2807 property:P1376 ?s . ?s rdf:type ontology:Q1048835 }
Madrid
action filter_type
action find
entity Madrid
relation capital of
type political territorial entity
['Madrid', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Madrid property:capital_of ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q5756
SYSTEM
Community of Madrid
Q5756
(Q2807,P1376,c(Q1048835))
action filter_type
action find
entity Q2807
relation P1376
type Q1048835
[ANSWER] has Madrid as its capital
['Q2807', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q2807 property:P1376 ?s . ?s rdf:type ontology:Q1048835 }
Community of Madrid
Community of Madrid has Madrid as its capital
Community of Madrid
action filter_type
action find
entity Madrid
relation capital of
type political territorial entity
['Madrid', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Madrid property:capital_of ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q542154
Q1048835
USER
And how about Koronadal?
(Q542154,P1376,c(Q1048835))
action filter_type
action find
entity Q542154
relation P1376
type Q1048835
['Q542154', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q542154 property:P1376 ?a . ?a rdf:type ontology:Q1048835 }
Koronadal
action filter_type
action find
entity Koronadal
relation capital of
type political territorial entity
['Koronadal', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Koronadal property:capital_of ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q13882
SYSTEM
South Cotabato
Q13882
(Q542154,P1376,c(Q1048835))
action filter_type
action find
entity Q542154
relation P1376
type Q1048835
[ANSWER]
['Q542154', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q542154 property:P1376 ?a . ?a rdf:type ontology:Q1048835 }
South Cotabato
South Cotabato
action filter_type
action find
entity Koronadal
relation capital of
type political territorial entity
['Koronadal', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Koronadal property:capital_of ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q542154
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of Koronadal ?
(Q542154,P1313,c(Q12737077))
action filter_type
action find
entity Q542154
relation P1313
type Q12737077
['Q542154', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q542154 property:P1313 ?y . ?y rdf:type ontology:Q12737077 }
Koronadal
action filter_type
action find
entity Koronadal
relation office held by head of government
type occupation
['Koronadal', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Koronadal property:office_held_by_head_of_government ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q542154,P1313,c(Q12737077))
action filter_type
action find
entity Q542154
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of Koronadal
['Q542154', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q542154 property:P1313 ?y . ?y rdf:type ontology:Q12737077 }
mayor
The mayor serves as the political office that is fulfilled by the head of the government of Koronadal
mayor
action filter_type
action find
entity Koronadal
relation office held by head of government
type occupation
['Koronadal', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Koronadal property:office_held_by_head_of_government ?y . ?y rdf:type ontology:occupation }
[]