Simple Question (Direct)
Simple Question
Q6252072
P106
Q12737077
USER
What does John Patrick Carney do for a living ?
(Q6252072,P106,c(Q12737077))
action filter_type
action find
entity Q6252072
relation P106
type Q12737077
['Q6252072', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q6252072 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
John Patrick Carney
action filter_type
action find
entity John Patrick Carney
relation occupation
type occupation
['John Patrick Carney', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:John_Patrick_Carney property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q6252072,P106,c(Q12737077))
action filter_type
action find
entity Q6252072
relation P106
type Q12737077
John Patrick Carney does a [ANSWER] for a living
['Q6252072', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q6252072 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
politician
John Patrick Carney does a politician for a living
politician
action filter_type
action find
entity John Patrick Carney
relation occupation
type occupation
['John Patrick Carney', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:John_Patrick_Carney property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6252072
P937
Q56061
USER
Which is the work location of that person ?
(Q82955,P937,c(Q56061))
action filter_type
action find
entity Q6252072
relation P937
type Q56061
['Q82955', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q6252072 property:P937 ?t . ?t rdf:type ontology:Q56061 }
John Patrick Carney
action filter_type
action find
entity John Patrick Carney
relation work location
type administrative territorial entity
['politician', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:John_Patrick_Carney property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q16567
SYSTEM
Columbus
Q16567
(Q82955,P937,c(Q56061))
action filter_type
action find
entity Q6252072
relation P937
type Q56061
The work location of that person is for [ANSWER]
['Q82955', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q6252072 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Columbus
The work location of that person is for Columbus
Columbus
action filter_type
action find
entity John Patrick Carney
relation work location
type administrative territorial entity
['politician', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:John_Patrick_Carney property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q16567 Q215755
P190
Q515
USER
Is Xiangtan twin city of that administrative territory ?
(Q16567,P190,Q215755)
action is_in
entity Q215755
action find
entity Q16567
relation P190
['Q16567', 'P190', 'Q215755']
ASK WHERE { resource:Q16567 property:P190 resource:Q215755 }
Columbus Xiangtan
action is_in
entity Xiangtan
action find
entity Columbus
relation sister city
['Columbus', 'sister city', 'Xiangtan']
ASK WHERE { resource:Columbus property:sister_city resource:Xiangtan }
[]
city
SYSTEM
NO
(Q16567,P190,Q215755)
action is_in
entity Q215755
action find
entity Q16567
relation P190
[ANSWER]
['Q16567', 'P190', 'Q215755']
ASK WHERE { resource:Q16567 property:P190 resource:Q215755 }
No
action is_in
entity Xiangtan
action find
entity Columbus
relation sister city
['Columbus', 'sister city', 'Xiangtan']
ASK WHERE { resource:Columbus property:sister_city resource:Xiangtan }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2666591
P921
Q12737077 Q191067 Q732577
USER
How many occupations were the main subjects of greater number of articles or publications 's work than Chair of the Federal Reserve ?
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q2666591
relation P921
type Q191067
type Q732577
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?t ) WHERE { ?m rdf:type ?l . VALUES ( ?l ) { ( ontology:Q732577 ) ( ontology:Q191067 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P921 resource:Q2666591 . { { ?k rdf:type ontology:Q191067 } UNION { ?k rdf:type ontology:Q732577 } } } } . FILTER ( ?t > ?h ) }
Chair of the Federal Reserve
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity Chair of the Federal Reserve
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?t ) WHERE { ?m rdf:type ?l . VALUES ( ?l ) { ( ontology:publication ) ( ontology:article ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:main_subject resource:Chair_of_the_Federal_Reserve . { { ?k rdf:type ontology:article } UNION { ?k rdf:type ontology:publication } } } } . FILTER ( ?t > ?h ) }
[]
occupation article publication
SYSTEM
9
Q172907 Q3809586 Q2094335 Q316070 Q510373 Q152002 Q15320003 Q732358 Q182436
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q2666591
relation P921
type Q191067
type Q732577
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?t ) WHERE { ?m rdf:type ?l . VALUES ( ?l ) { ( ontology:Q732577 ) ( ontology:Q191067 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P921 resource:Q2666591 . { { ?k rdf:type ontology:Q191067 } UNION { ?k rdf:type ontology:Q732577 } } } } . FILTER ( ?t > ?h ) }
praetor Wikipedian in Residence United States Attorney Fletcher Christian Lord High Steward pastor migrant worker Nomarch librarian
9
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity Chair of the Federal Reserve
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?t ) WHERE { ?m rdf:type ?l . VALUES ( ?l ) { ( ontology:publication ) ( ontology:article ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:main_subject resource:Chair_of_the_Federal_Reserve . { { ?k rdf:type ontology:article } UNION { ?k rdf:type ontology:publication } } } } . FILTER ( ?t > ?h ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q133485
P921
Q12737077 Q191067 Q732577
USER
And also tell me about rabbi?
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q133485
relation P921
type Q191067
type Q732577
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) ?p WHERE { VALUES ( ?h ) { ( ontology:Q191067 ) ( ontology:Q732577 ) } . ?n rdf:type ?h } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { { ?k rdf:type ontology:Q732577 } UNION { ?k rdf:type ontology:Q191067 } } . ?k property:P921 resource:Q133485 } } . FILTER ( ?l > ?a ) }
rabbi
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity rabbi
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) ?p WHERE { VALUES ( ?h ) { ( ontology:article ) ( ontology:publication ) } . ?n rdf:type ?h } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { { ?k rdf:type ontology:publication } UNION { ?k rdf:type ontology:article } } . ?k property:main_subject resource:rabbi } } . FILTER ( ?l > ?a ) }
[]
occupation article publication
SYSTEM
9
Q172907 Q3809586 Q2094335 Q316070 Q510373 Q152002 Q15320003 Q732358 Q182436
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q133485
relation P921
type Q191067
type Q732577
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) ?p WHERE { VALUES ( ?h ) { ( ontology:Q191067 ) ( ontology:Q732577 ) } . ?n rdf:type ?h } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { { ?k rdf:type ontology:Q732577 } UNION { ?k rdf:type ontology:Q191067 } } . ?k property:P921 resource:Q133485 } } . FILTER ( ?l > ?a ) }
praetor Wikipedian in Residence United States Attorney Fletcher Christian Lord High Steward pastor migrant worker Nomarch librarian
9
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity rabbi
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) ?p WHERE { VALUES ( ?h ) { ( ontology:article ) ( ontology:publication ) } . ?n rdf:type ?h } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { { ?k rdf:type ontology:publication } UNION { ?k rdf:type ontology:article } } . ?k property:main_subject resource:rabbi } } . FILTER ( ?l > ?a ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16567
P47
Q56061
USER
Which administrative territory has a shared border with Columbus ?
(Q16567,P47,c(Q56061))
action filter_type
action find
entity Q16567
relation P47
type Q56061
['Q16567', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q16567 property:P47 ?v . ?v rdf:type ontology:Q56061 }
Columbus
action filter_type
action find
entity Columbus
relation shares border with
type administrative territorial entity
['Columbus', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Columbus property:shares_border_with ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q815891
SYSTEM
Bellefontaine
Q815891
(Q16567,P47,c(Q56061))
action filter_type
action find
entity Q16567
relation P47
type Q56061
[ANSWER] has a shared border with Columbus
['Q16567', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q16567 property:P47 ?v . ?v rdf:type ontology:Q56061 }
Bellefontaine
Bellefontaine has a shared border with Columbus
Bellefontaine
action filter_type
action find
entity Columbus
relation shares border with
type administrative territorial entity
['Columbus', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Columbus property:shares_border_with ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q815891 Q30
P17
Q15617994
USER
Is Bellefontaine located in United States of America ?
(Q815891,P17,Q30)
action is_in
entity Q30
action find
entity Q815891
relation P17
['Q815891', 'P17', 'Q30']
ASK WHERE { resource:Q815891 property:P17 resource:Q30 }
Bellefontaine United States of America
action is_in
entity United States of America
action find
entity Bellefontaine
relation country
['Bellefontaine', 'country', 'United States of America']
ASK WHERE { resource:Bellefontaine property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q815891,P17,Q30)
action is_in
entity Q30
action find
entity Q815891
relation P17
[ANSWER]
['Q815891', 'P17', 'Q30']
ASK WHERE { resource:Q815891 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Bellefontaine
relation country
['Bellefontaine', 'country', 'United States of America']
ASK WHERE { resource:Bellefontaine property:country resource:United_States_of_America }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6452312 Q16567
P190 P20
Q56061
USER
Which administrative territories are partner towns of Columbus and are the places of death of Jesús José Sagredo Zuloaga ?
AND((Q16567,P190,c(Q56061)), (Q6452312,P20,c(Q56061)))
action filter_type
action intersection
action find
entity Q16567
relation P190
action find
entity Q6452312
relation P20
type Q56061
{'AND': [['Q16567', 'P190', {'concept': 'Q56061'}], ['Q6452312', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { resource:Q16567 property:P190 ?i . resource:Q6452312 property:P20 ?i . ?i rdf:type ontology:Q56061 }
Jesús José Sagredo Zuloaga Columbus
action filter_type
action intersection
action find
entity Columbus
relation sister city
action find
entity Jesús José Sagredo Zuloaga
relation place of death
type administrative territorial entity
{'AND': [['Columbus', 'sister city', {'concept': 'administrative territorial entity'}], ['Jesús José Sagredo Zuloaga', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { resource:Columbus property:sister_city ?i . resource:Jesús_José_Sagredo_Zuloaga property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8717
SYSTEM
Seville
Q8717
AND((Q16567,P190,c(Q56061)), (Q6452312,P20,c(Q56061)))
action filter_type
action intersection
action find
entity Q16567
relation P190
action find
entity Q6452312
relation P20
type Q56061
[ANSWER] is partner towns of Columbus and is the places of death of Jesús José Sagredo Zuloaga
{'AND': [['Q16567', 'P190', {'concept': 'Q56061'}], ['Q6452312', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { resource:Q16567 property:P190 ?i . resource:Q6452312 property:P20 ?i . ?i rdf:type ontology:Q56061 }
Seville
Seville is partner towns of Columbus and is the places of death of Jesús José Sagredo Zuloaga
Seville
action filter_type
action intersection
action find
entity Columbus
relation sister city
action find
entity Jesús José Sagredo Zuloaga
relation place of death
type administrative territorial entity
{'AND': [['Columbus', 'sister city', {'concept': 'administrative territorial entity'}], ['Jesús José Sagredo Zuloaga', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { resource:Columbus property:sister_city ?i . resource:Jesús_José_Sagredo_Zuloaga property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q8717 Q957755
P190
Q56061
USER
Is Pađene twin city of Seville ?
(Q8717,P190,Q957755)
action is_in
entity Q957755
action find
entity Q8717
relation P190
['Q8717', 'P190', 'Q957755']
ASK WHERE { resource:Q8717 property:P190 resource:Q957755 }
Seville Pađene
action is_in
entity Pađene
action find
entity Seville
relation sister city
['Seville', 'sister city', 'Pađene']
ASK WHERE { resource:Seville property:sister_city resource:Pađene }
[]
administrative territorial entity
SYSTEM
NO
(Q8717,P190,Q957755)
action is_in
entity Q957755
action find
entity Q8717
relation P190
[ANSWER]
['Q8717', 'P190', 'Q957755']
ASK WHERE { resource:Q8717 property:P190 resource:Q957755 }
No
action is_in
entity Pađene
action find
entity Seville
relation sister city
['Seville', 'sister city', 'Pađene']
ASK WHERE { resource:Seville property:sister_city resource:Pađene }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q6252072 Q30 Q8061049
P27
Q15617994
USER
Is John Patrick Carney a citizen of United States of America and Yuma Union High School District ?
(Q6252072,P27,Q30) (Q6252072,P27,Q8061049)
action is_in
entity Q6252072
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q8061049
relation P27
['Q6252072', 'P27', 'Q30'] ['Q6252072', 'P27', 'Q8061049']
ASK WHERE { resource:Q6252072 property:P27 resource:Q30 . resource:Q6252072 property:P27 resource:Q8061049 }
John Patrick Carney United States of America Yuma Union High School District
action is_in
entity John Patrick Carney
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Yuma Union High School District
relation country of citizenship
['John Patrick Carney', 'country of citizenship', 'United States of America'] ['John Patrick Carney', 'country of citizenship', 'Yuma Union High School District']
ASK WHERE { resource:John_Patrick_Carney property:country_of_citizenship resource:United_States_of_America . resource:John_Patrick_Carney property:country_of_citizenship resource:Yuma_Union_High_School_District }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q6252072,P27,Q30) (Q6252072,P27,Q8061049)
action is_in
entity Q6252072
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q8061049
relation P27
[ANSWER]
['Q6252072', 'P27', 'Q30'] ['Q6252072', 'P27', 'Q8061049']
ASK WHERE { resource:Q6252072 property:P27 resource:Q30 . resource:Q6252072 property:P27 resource:Q8061049 }
YES and NO respectively
action is_in
entity John Patrick Carney
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Yuma Union High School District
relation country of citizenship
['John Patrick Carney', 'country of citizenship', 'United States of America'] ['John Patrick Carney', 'country of citizenship', 'Yuma Union High School District']
ASK WHERE { resource:John_Patrick_Carney property:country_of_citizenship resource:United_States_of_America . resource:John_Patrick_Carney property:country_of_citizenship resource:Yuma_Union_High_School_District }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q8717 Q6758604 Q12651823
P190
Q56061
USER
Is Seville a sister city of Mard-e Khaneh and Būda III ?
(Q8717,P190,Q6758604) (Q8717,P190,Q12651823)
action is_in
entity Q8717
action intersection
action find_reverse
entity Q6758604
relation P190
action find_reverse
entity Q12651823
relation P190
['Q8717', 'P190', 'Q6758604'] ['Q8717', 'P190', 'Q12651823']
ASK WHERE { resource:Q8717 property:P190 resource:Q6758604 . resource:Q8717 property:P190 resource:Q12651823 }
Seville Mard-e Khaneh Būda III
action is_in
entity Seville
action intersection
action find_reverse
entity Mard-e Khaneh
relation sister city
action find_reverse
entity Būda III
relation sister city
['Seville', 'sister city', 'Mard-e Khaneh'] ['Seville', 'sister city', 'Būda III']
ASK WHERE { resource:Seville property:sister_city resource:Mard-e_Khaneh . resource:Seville property:sister_city resource:Būda_III }
[]
administrative territorial entity
SYSTEM
NO
(Q8717,P190,Q6758604) (Q8717,P190,Q12651823)
action is_in
entity Q8717
action intersection
action find_reverse
entity Q6758604
relation P190
action find_reverse
entity Q12651823
relation P190
[ANSWER]
['Q8717', 'P190', 'Q6758604'] ['Q8717', 'P190', 'Q12651823']
ASK WHERE { resource:Q8717 property:P190 resource:Q6758604 . resource:Q8717 property:P190 resource:Q12651823 }
No
action is_in
entity Seville
action intersection
action find_reverse
entity Mard-e Khaneh
relation sister city
action find_reverse
entity Būda III
relation sister city
['Seville', 'sister city', 'Mard-e Khaneh'] ['Seville', 'sister city', 'Būda III']
ASK WHERE { resource:Seville property:sister_city resource:Mard-e_Khaneh . resource:Seville property:sister_city resource:Būda_III }
[]