Simple Question (Direct)
Simple Question
Q339690
P106
Q12737077
USER
Which occupation has Lianne Sanderson as his/her 's career ?
(Q339690,P106,c(Q12737077))
action filter_type
action find
entity Q339690
relation P106
type Q12737077
['Q339690', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q339690 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Lianne Sanderson
action filter_type
action find
entity Lianne Sanderson
relation occupation
type occupation
['Lianne Sanderson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Lianne_Sanderson property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q339690,P106,c(Q12737077))
action filter_type
action find
entity Q339690
relation P106
type Q12737077
Player [ANSWER] has Lianne Sanderson as his/her 's career
['Q339690', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q339690 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
association football player
Player association football player has Lianne Sanderson as his/her 's career
association football player
action filter_type
action find
entity Lianne Sanderson
relation occupation
type occupation
['Lianne Sanderson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Lianne_Sanderson property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q937857
P101
Q502895
USER
Which person has specialisation in that occupation ?
(c(Q502895),P101,Q937857)
action filter_type
action find_reverse
entity Q937857
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q937857']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P101 resource:Q937857 }
association football player
action filter_type
action find_reverse
entity association football player
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'association football player']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:field_of_work resource:association_football_player }
[]
common name
Q2089026
SYSTEM
Akaki Devadze
Q2089026
(c(Q502895),P101,Q937857)
action filter_type
action find_reverse
entity Q937857
relation P101
type Q502895
[ANSWER] has specialisation in that occupation
[{'concept': 'Q502895'}, 'P101', 'Q937857']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P101 resource:Q937857 }
Akaki Devadze
Akaki Devadze has specialisation in that occupation
Akaki Devadze
action filter_type
action find_reverse
entity association football player
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'association football player']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:field_of_work resource:association_football_player }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q218894
P725
Q502895 Q11424
USER
How many films did approximately the same number of people dub for as Pocahontas ?
(c(Q11424),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q218894
relation P725
type Q11424
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?l ) AS ?w ) WHERE { ?o property:P725 ?l . ?l rdf:type ontology:Q502895 . ?o rdf:type ontology:Q11424 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ontology:Q11424 . resource:Q218894 property:P725 ?b } } . FILTER ( ?w = ?c ) }
Pocahontas
action count
action approx
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Pocahontas
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?l ) AS ?w ) WHERE { ?o property:voice_actor ?l . ?l rdf:type ontology:common_name . ?o rdf:type ontology:film } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ontology:film . resource:Pocahontas property:voice_actor ?b } } . FILTER ( ?w = ?c ) }
[]
common name film
SYSTEM
43
Q378913 Q191753 Q6929072 Q785294 Q204662 Q521082 Q1764174 Q752301 Q270470 Q334132 Q215518 Q1160649 Q134430 Q215617 Q853718 Q374431 Q12084660 Q578595 Q933887 Q329316 Q213787 Q611739 Q980041 Q3588859 Q249967 Q19090 Q184701 Q2059996 Q465275 Q218894 Q172284 Q202371 Q40302 Q189875 Q43051 Q917278 Q498434 Q199839 Q36479 Q39722 Q40895 Q1102410 Q3226633
(c(Q11424),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q218894
relation P725
type Q11424
[ANSWER]
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?l ) AS ?w ) WHERE { ?o property:P725 ?l . ?l rdf:type ontology:Q502895 . ?o rdf:type ontology:Q11424 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ontology:Q11424 . resource:Q218894 property:P725 ?b } } . FILTER ( ?w = ?c ) }
The Lord of the Rings Cinderella Mr. Peabody & Sherman Captain of the Forest The Sword in the Stone Szaffi Quest for Camelot Flushed Away Peter Pan The Great Mouse Detective Aladdin Mattie the Goose-boy Snow White and the Seven Dwarfs Sleeping Beauty Fun and Fancy Free The Tigger Movie The Princess and the Goblin Paprika Tintin and the Temple of the Sun The Black Cauldron The Hunchback of Notre Dame The Ballad of the Daltons The Adventures of Tintin Emilie Jolie Hotel Transylvania Robin Hood The Aristocats My Little Pony: The Movie Fantastic Mr. Fox Pocahontas Lady and the Tramp The Rescuers Down Under The Fox and the Hound Alice in Wonderland Bambi Tokyo Godfathers The Many Adventures of Winnie the Pooh The Jungle Book The Lion King The Rescuers Dumbo Johnny Corncob Renart the Fox
43
action count
action approx
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Pocahontas
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?l ) AS ?w ) WHERE { ?o property:voice_actor ?l . ?l rdf:type ontology:common_name . ?o rdf:type ontology:film } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ontology:film . resource:Pocahontas property:voice_actor ?b } } . FILTER ( ?w = ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1160649
P725
Q502895 Q11424
USER
And also tell me about Mattie the Goose-boy?
(c(Q11424),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q1160649
relation P725
type Q11424
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?p ) WHERE { ?n property:P725 ?j . ?n rdf:type ontology:Q11424 . ?j rdf:type ontology:Q502895 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v rdf:type ontology:Q11424 . resource:Q1160649 property:P725 ?v } } . FILTER ( ?p = ?l ) }
Mattie the Goose-boy
action count
action approx
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Mattie the Goose-boy
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?p ) WHERE { ?n property:voice_actor ?j . ?n rdf:type ontology:film . ?j rdf:type ontology:common_name } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v rdf:type ontology:film . resource:Mattie_the_Goose-boy property:voice_actor ?v } } . FILTER ( ?p = ?l ) }
[]
common name film
SYSTEM
66
Q1235519 Q378913 Q4499813 Q3038714 Q191753 Q6929072 Q785294 Q6296387 Q204662 Q521082 Q1764174 Q752301 Q270470 Q334132 Q449917 Q4341553 Q1491010 Q215518 Q156401 Q1160649 Q134430 Q215617 Q811980 Q254671 Q853718 Q374431 Q12084660 Q578595 Q329316 Q44817 Q9019373 Q223359 Q213787 Q611739 Q980041 Q869741 Q3588859 Q371490 Q3836716 Q249967 Q19090 Q4189838 Q2059996 Q736731 Q318428 Q465275 Q218894 Q172284 Q202371 Q40302 Q336012 Q43051 Q1494230 Q917278 Q1406374 Q2068444 Q498434 Q199839 Q36479 Q1634740 Q39722 Q40895 Q3190021 Q1102410 Q3226633 Q240852
(c(Q11424),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q1160649
relation P725
type Q11424
[ANSWER]
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?p ) WHERE { ?n property:P725 ?j . ?n rdf:type ontology:Q11424 . ?j rdf:type ontology:Q502895 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v rdf:type ontology:Q11424 . resource:Q1160649 property:P725 ?v } } . FILTER ( ?p = ?l ) }
Panda and the Magic Serpent The Lord of the Rings Home Lucky Luke: The Daltons on the Run Cinderella Mr. Peabody & Sherman Captain of the Forest Rio 2 The Sword in the Stone Szaffi Quest for Camelot Flushed Away Peter Pan The Great Mouse Detective The Chipmunk Adventure Pinocchio Tintin and the Lake of Sharks Aladdin Chicken Run Mattie the Goose-boy Snow White and the Seven Dwarfs Sleeping Beauty The Adventures of Lolo the Penguin Coonskin Fun and Fancy Free The Tigger Movie The Princess and the Goblin Paprika The Black Cauldron The Little Fox The Legend of the North Wind Rio The Hunchback of Notre Dame The Ballad of the Daltons The Adventures of Tintin Melody Time Emilie Jolie Son of the White Mare The Looney Looney Looney Bugs Bunny Movie Hotel Transylvania Robin Hood Starchaser: The Legend of Orin My Little Pony: The Movie The Three Caballeros Wallace & Gromit: The Curse of the Were-Rabbit Fantastic Mr. Fox Pocahontas Lady and the Tramp The Rescuers Down Under The Fox and the Hound The Girl Who Leapt Through Time Bambi Garfield Gets Real Tokyo Godfathers Piglet's Big Movie Felix the Cat: The Movie The Many Adventures of Winnie the Pooh The Jungle Book The Lion King Jungledyret Hugo The Rescuers Dumbo Jungledyret Hugo - den store filmhelt Johnny Corncob Renart the Fox FernGully: The Last Rainforest
66
action count
action approx
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Mattie the Goose-boy
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?p ) WHERE { ?n property:voice_actor ?j . ?n rdf:type ontology:film . ?j rdf:type ontology:common_name } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v rdf:type ontology:film . resource:Mattie_the_Goose-boy property:voice_actor ?v } } . FILTER ( ?p = ?l ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15961987
USER
How many television genres have been dubbed by exactly 10 people ?
(c(Q15961987),P725,c(Q502895))
action count
action equal
action find_tuple_counts
relation P725
type Q15961987
type Q502895
value 10
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { FILTER ( ?d = 10 ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?d ) WHERE { ?x property:P725 ?a . ?x rdf:type ontology:Q15961987 . ?a rdf:type ontology:Q502895 } GROUP BY ?x } }
action count
action equal
action find_tuple_counts
relation voice actor
type television genre
type common name
value 10
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { FILTER ( ?d = 10 ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?d ) WHERE { ?x property:voice_actor ?a . ?x rdf:type ontology:television_genre . ?a rdf:type ontology:common_name } GROUP BY ?x } }
[]
common name television genre
SYSTEM
1
Q53093
(c(Q15961987),P725,c(Q502895))
action count
action equal
action find_tuple_counts
relation P725
type Q15961987
type Q502895
value 10
[ANSWER]
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { FILTER ( ?d = 10 ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?d ) WHERE { ?x property:P725 ?a . ?x rdf:type ontology:Q15961987 . ?a rdf:type ontology:Q502895 } GROUP BY ?x } }
Adventure Time
1
action count
action equal
action find_tuple_counts
relation voice actor
type television genre
type common name
value 10
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { FILTER ( ?d = 10 ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?d ) WHERE { ?x property:voice_actor ?a . ?x rdf:type ontology:television_genre . ?a rdf:type ontology:common_name } GROUP BY ?x } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19618138 Q218894
P495 P17
Q15617994
USER
Which administrative territories are the origin of Pocahontas or are van Berckenrodelaan a part of ?
OR((Q218894,P495,c(Q15617994)), (Q19618138,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q218894
relation P495
action find
entity Q19618138
relation P17
type Q15617994
{'OR': [['Q218894', 'P495', {'concept': 'Q15617994'}], ['Q19618138', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q218894 property:P495 ?l } UNION { resource:Q19618138 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
van Berckenrodelaan Pocahontas
action filter_type
action union
action find
entity Pocahontas
relation country of origin
action find
entity van Berckenrodelaan
relation country
type designation for an administrative territorial entity
{'OR': [['Pocahontas', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['van Berckenrodelaan', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Pocahontas property:country_of_origin ?l } UNION { resource:van_Berckenrodelaan property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q55
SYSTEM
United States of America, Netherlands
Q30 Q55
OR((Q218894,P495,c(Q15617994)), (Q19618138,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q218894
relation P495
action find
entity Q19618138
relation P17
type Q15617994
[ANSWERS] are the origin of Pocahontas or are van Berckenrodelaan a part of
{'OR': [['Q218894', 'P495', {'concept': 'Q15617994'}], ['Q19618138', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q218894 property:P495 ?l } UNION { resource:Q19618138 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
United States of America Netherlands
United States of America and Netherlands are the origin of Pocahontas or are van Berckenrodelaan a part of
United States of America Netherlands
action filter_type
action union
action find
entity Pocahontas
relation country of origin
action find
entity van Berckenrodelaan
relation country
type designation for an administrative territorial entity
{'OR': [['Pocahontas', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['van Berckenrodelaan', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Pocahontas property:country_of_origin ?l } UNION { resource:van_Berckenrodelaan property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P463
Q1129645 Q874405
USER
How many trade blocs or social groups were that administrative territory a member of ?
(Q30,P463,c(Q1129645)) (Q30,P463,c(Q874405)) (Q30,P463,c(Q1129645)) (Q30,P463,c(Q874405)) (Q55,P463,c(Q1129645)) (Q55,P463,c(Q874405))
['Q30', 'P463', {'concept': 'Q1129645'}] ['Q30', 'P463', {'concept': 'Q874405'}] ['Q30', 'P463', {'concept': 'Q1129645'}] ['Q30', 'P463', {'concept': 'Q874405'}] ['Q55', 'P463', {'concept': 'Q1129645'}] ['Q55', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q30 property:P463 ?z } UNION { resource:Q30 property:P463 ?y } UNION { resource:Q30 property:P463 ?z } UNION { resource:Q30 property:P463 ?y } UNION { resource:Q22442862 property:P463 ?z } UNION { resource:Q22442862 property:P463 ?y } } . ?z rdf:type ontology:Q1129645 . ?y rdf:type ontology:Q874405 }
['United States of America', 'member of', {'concept': 'trade bloc'}] ['United States of America', 'member of', {'concept': 'social group'}] ['United States of America', 'member of', {'concept': 'trade bloc'}] ['United States of America', 'member of', {'concept': 'social group'}] ['Netherlands', 'member of', {'concept': 'trade bloc'}] ['Netherlands', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:United_States_of_America property:member_of ?z } UNION { resource:United_States_of_America property:member_of ?y } UNION { resource:United_States_of_America property:member_of ?z } UNION { resource:United_States_of_America property:member_of ?y } UNION { resource:Netherlands property:member_of ?z } UNION { resource:Netherlands property:member_of ?y } } . ?z rdf:type ontology:trade_bloc . ?y rdf:type ontology:social_group }
[]
trade bloc social group
Quantitative|Count|Mult. entity type|Clarification
Q55
SYSTEM
Did you mean Netherlands ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q30 property:P463 ?z } UNION { resource:Q30 property:P463 ?y } UNION { resource:Q30 property:P463 ?z } UNION { resource:Q30 property:P463 ?y } UNION { resource:Q22442862 property:P463 ?z } UNION { resource:Q22442862 property:P463 ?y } } . ?z rdf:type ontology:Q1129645 . ?y rdf:type ontology:Q874405 }
Did you mean Netherlands ?
Netherlands
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:United_States_of_America property:member_of ?z } UNION { resource:United_States_of_America property:member_of ?y } UNION { resource:United_States_of_America property:member_of ?z } UNION { resource:United_States_of_America property:member_of ?y } UNION { resource:Netherlands property:member_of ?z } UNION { resource:Netherlands property:member_of ?y } } . ?z rdf:type ontology:trade_bloc . ?y rdf:type ontology:social_group }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant United States of America. Could you tell me the answer for that?
(Q30,P463,c(Q1129645)) (Q30,P463,c(Q874405)) (Q30,P463,c(Q1129645)) (Q30,P463,c(Q874405)) (Q55,P463,c(Q1129645)) (Q55,P463,c(Q874405))
Q30
['Q30', 'P463', {'concept': 'Q1129645'}] ['Q30', 'P463', {'concept': 'Q874405'}] ['Q30', 'P463', {'concept': 'Q1129645'}] ['Q30', 'P463', {'concept': 'Q874405'}] ['Q55', 'P463', {'concept': 'Q1129645'}] ['Q55', 'P463', {'concept': 'Q874405'}]
['United States of America', 'member of', {'concept': 'trade bloc'}] ['United States of America', 'member of', {'concept': 'social group'}] ['United States of America', 'member of', {'concept': 'trade bloc'}] ['United States of America', 'member of', {'concept': 'social group'}] ['Netherlands', 'member of', {'concept': 'trade bloc'}] ['Netherlands', 'member of', {'concept': 'social group'}]
[]
SYSTEM
3
Q181574 Q782942 Q295875
(Q30,P463,c(Q1129645)) (Q30,P463,c(Q874405)) (Q30,P463,c(Q1129645)) (Q30,P463,c(Q874405)) (Q55,P463,c(Q1129645)) (Q55,P463,c(Q874405))
[ANSWER]
['Q30', 'P463', {'concept': 'Q1129645'}] ['Q30', 'P463', {'concept': 'Q874405'}] ['Q30', 'P463', {'concept': 'Q1129645'}] ['Q30', 'P463', {'concept': 'Q874405'}] ['Q55', 'P463', {'concept': 'Q1129645'}] ['Q55', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q30 property:P463 ?z } UNION { resource:Q30 property:P463 ?y } UNION { resource:Q30 property:P463 ?z } UNION { resource:Q30 property:P463 ?y } UNION { resource:Q22442862 property:P463 ?z } UNION { resource:Q22442862 property:P463 ?y } } . ?z rdf:type ontology:Q1129645 . ?y rdf:type ontology:Q874405 }
North American Free Trade Agreement Australia Group ANZUS
3
['United States of America', 'member of', {'concept': 'trade bloc'}] ['United States of America', 'member of', {'concept': 'social group'}] ['United States of America', 'member of', {'concept': 'trade bloc'}] ['United States of America', 'member of', {'concept': 'social group'}] ['Netherlands', 'member of', {'concept': 'trade bloc'}] ['Netherlands', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:United_States_of_America property:member_of ?z } UNION { resource:United_States_of_America property:member_of ?y } UNION { resource:United_States_of_America property:member_of ?z } UNION { resource:United_States_of_America property:member_of ?y } UNION { resource:Netherlands property:member_of ?z } UNION { resource:Netherlands property:member_of ?y } } . ?z rdf:type ontology:trade_bloc . ?y rdf:type ontology:social_group }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q133646 Q937857
P425 P641
Q349
USER
Which sports are associated with the field of occupation association football player and did Emanuel Herrera participate in ?
AND((Q937857,P425,c(Q349)), (Q133646,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q133646
relation P641
type Q349
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q133646', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q349 . resource:Q937857 property:P425 ?e . resource:Q133646 property:P641 ?e }
Emanuel Herrera association football player
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Emanuel Herrera
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Emanuel Herrera', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sport . resource:association_football_player property:field_of_this_occupation ?e . resource:Emanuel_Herrera property:sport ?e }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q937857,P425,c(Q349)), (Q133646,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q133646
relation P641
type Q349
Team [ANSWER] is associated with the field of occupation [ANSWER] player and did Emanuel Herrera participate in
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q133646', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q349 . resource:Q937857 property:P425 ?e . resource:Q133646 property:P641 ?e }
association football
Team association football is associated with the field of occupation association football player and did Emanuel Herrera participate in
association football
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Emanuel Herrera
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Emanuel Herrera', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sport . resource:association_football_player property:field_of_this_occupation ?e . resource:Emanuel_Herrera property:sport ?e }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q30
P6
Q502895
USER
How many people are United States of America the head of goverment of ?
(Q30,P6,c(Q502895))
action count
action filter_type
action find
entity Q30
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { resource:Q30 property:P6 ?c . ?c rdf:type ontology:Q502895 }
United States of America
action count
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { resource:United_States_of_America property:head_of_government ?c . ?c rdf:type ontology:common_name }
[]
common name
SYSTEM
44
Q35171 Q11815 Q11816 Q11817 Q35498 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q9588 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
(Q30,P6,c(Q502895))
action count
action filter_type
action find
entity Q30
relation P6
type Q502895
[ANSWER]
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { resource:Q30 property:P6 ?c . ?c rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Chester A. Arthur Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Richard Nixon Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William McKinley Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
44
action count
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { resource:United_States_of_America property:head_of_government ?c . ?c rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q5068791
P6
Q502895
USER
And what about Șicula?
(Q5068791,P6,c(Q502895))
action count
action filter_type
action find
entity Q5068791
relation P6
type Q502895
['Q5068791', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { resource:Q5068791 property:P6 ?m . ?m rdf:type ontology:Q502895 }
Șicula
action count
action filter_type
action find
entity Șicula
relation head of government
type common name
['Șicula', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { resource:Șicula property:head_of_government ?m . ?m rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q24350112 Q25951768
(Q5068791,P6,c(Q502895))
action count
action filter_type
action find
entity Q5068791
relation P6
type Q502895
[ANSWER]
['Q5068791', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { resource:Q5068791 property:P6 ?m . ?m rdf:type ontology:Q502895 }
Aurel-Mircea Radita Duțu Căprar
2
action count
action filter_type
action find
entity Șicula
relation head of government
type common name
['Șicula', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { resource:Șicula property:head_of_government ?m . ?m rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1637069
Q502895
USER
And what about Jaramillo Quemado?
(Q1637069,P6,c(Q502895))
action count
action filter_type
action find
entity Q1637069
relation P6
type Q502895
['Q1637069', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { resource:Q1637069 property:P6 ?f . ?f rdf:type ontology:Q502895 }
Jaramillo Quemado
action count
action filter_type
action find
entity Jaramillo Quemado
relation head of government
type common name
['Jaramillo Quemado', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { resource:Jaramillo_Quemado property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]
common name
SYSTEM
1
(Q1637069,P6,c(Q502895))
action count
action filter_type
action find
entity Q1637069
relation P6
type Q502895
[ANSWER]
['Q1637069', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { resource:Q1637069 property:P6 ?f . ?f rdf:type ontology:Q502895 }
1
action count
action filter_type
action find
entity Jaramillo Quemado
relation head of government
type common name
['Jaramillo Quemado', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { resource:Jaramillo_Quemado property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q30
P6
Q502895
USER
How many people have United States of America as their heads of government ?
(Q30,P6,c(Q502895))
action count
action filter_type
action find
entity Q30
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { resource:Q30 property:P6 ?w . ?w rdf:type ontology:Q502895 }
United States of America
action count
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { resource:United_States_of_America property:head_of_government ?w . ?w rdf:type ontology:common_name }
[]
common name
SYSTEM
44
Q35171 Q11815 Q11816 Q11817 Q35498 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q9588 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
(Q30,P6,c(Q502895))
action count
action filter_type
action find
entity Q30
relation P6
type Q502895
[ANSWER]
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { resource:Q30 property:P6 ?w . ?w rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Chester A. Arthur Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Richard Nixon Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William McKinley Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
44
action count
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { resource:United_States_of_America property:head_of_government ?w . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q932872
Q502895
USER
And what about Lazkao?
(Q932872,P6,c(Q502895))
action count
action filter_type
action find
entity Q932872
relation P6
type Q502895
['Q932872', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { resource:Q932872 property:P6 ?f . ?f rdf:type ontology:Q502895 }
Lazkao
action count
action filter_type
action find
entity Lazkao
relation head of government
type common name
['Lazkao', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { resource:Lazkao property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]
common name
SYSTEM
1
(Q932872,P6,c(Q502895))
action count
action filter_type
action find
entity Q932872
relation P6
type Q502895
[ANSWER]
['Q932872', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { resource:Q932872 property:P6 ?f . ?f rdf:type ontology:Q502895 }
1
action count
action filter_type
action find
entity Lazkao
relation head of government
type common name
['Lazkao', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { resource:Lazkao property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3199687 Q932872
P17
Q15617994
USER
Which administrative territories are Lazkao or Kreča, Goražde situated in ?
OR((Q932872,P17,c(Q15617994)), (Q3199687,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q932872
relation P17
action find
entity Q3199687
relation P17
type Q15617994
{'OR': [['Q932872', 'P17', {'concept': 'Q15617994'}], ['Q3199687', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { ?m property:P17 ?v . VALUES ( ?m ) { ( resource:Q932872 ) ( resource:Q3199687 ) } } . ?v rdf:type ontology:Q15617994 }
Kreča, Goražde Lazkao
action filter_type
action union
action find
entity Lazkao
relation country
action find
entity Kreča, Goražde
relation country
type designation for an administrative territorial entity
{'OR': [['Lazkao', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kreča, Goražde', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { ?m property:country ?v . VALUES ( ?m ) { ( resource:Lazkao ) ( resource:Kreča,_Goražde ) } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q225
SYSTEM
Spain, Bosnia and Herzegovina
Q29 Q225
OR((Q932872,P17,c(Q15617994)), (Q3199687,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q932872
relation P17
action find
entity Q3199687
relation P17
type Q15617994
[ANSWERS] are Lazkao or Kreča, Goražde situated in
{'OR': [['Q932872', 'P17', {'concept': 'Q15617994'}], ['Q3199687', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { ?m property:P17 ?v . VALUES ( ?m ) { ( resource:Q932872 ) ( resource:Q3199687 ) } } . ?v rdf:type ontology:Q15617994 }
Spain Bosnia and Herzegovina
Spain and Bosnia and Herzegovina are Lazkao or Kreča, Goražde situated in
Spain Bosnia and Herzegovina
action filter_type
action union
action find
entity Lazkao
relation country
action find
entity Kreča, Goražde
relation country
type designation for an administrative territorial entity
{'OR': [['Lazkao', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kreča, Goražde', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { ?m property:country ?v . VALUES ( ?m ) { ( resource:Lazkao ) ( resource:Kreča,_Goražde ) } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]