Simple Question (Direct)
Simple Question
Q16231821
P641
Q349
USER
Which sport was James Moore a part of ?
(Q16231821,P641,c(Q349))
action filter_type
action find
entity Q16231821
relation P641
type Q349
['Q16231821', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q16231821 property:P641 ?y . ?y rdf:type ontology:Q349 }
James Moore
action filter_type
action find
entity James Moore
relation sport
type sport
['James Moore', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:James_Moore property:sport ?y . ?y rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q16231821,P641,c(Q349))
action filter_type
action find
entity Q16231821
relation P641
type Q349
Which sport was James Moore a part of
['Q16231821', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q16231821 property:P641 ?y . ?y rdf:type ontology:Q349 }
association football
Which sport was James Moore a part of
association football
action filter_type
action find
entity James Moore
relation sport
type sport
['James Moore', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:James_Moore property:sport ?y . ?y rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16231821
P19
Q56061
USER
Where was James Moore born ?
(Q16231821,P19,c(Q56061))
action filter_type
action find
entity Q16231821
relation P19
type Q56061
['Q16231821', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q16231821 property:P19 ?h }
James Moore
action filter_type
action find
entity James Moore
relation place of birth
type administrative territorial entity
['James Moore', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:James_Moore property:place_of_birth ?h }
[]
administrative territorial entity
Q18125
SYSTEM
Manchester
Q18125
(Q16231821,P19,c(Q56061))
action filter_type
action find
entity Q16231821
relation P19
type Q56061
James Moore was born in [ANSWER]
['Q16231821', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q16231821 property:P19 ?h }
Manchester
James Moore was born in Manchester
Manchester
action filter_type
action find
entity James Moore
relation place of birth
type administrative territorial entity
['James Moore', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:James_Moore property:place_of_birth ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16231821
P106
Q12737077
USER
What is the profession of that person ?
(Q18125,P106,c(Q12737077))
action filter_type
action find
entity Q16231821
relation P106
type Q12737077
['Q18125', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q16231821 property:P106 ?u }
James Moore
action filter_type
action find
entity James Moore
relation occupation
type occupation
['Manchester', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:James_Moore property:occupation ?u }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q18125,P106,c(Q12737077))
action filter_type
action find
entity Q16231821
relation P106
type Q12737077
The profession of that person is an [ANSWER]
['Q18125', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q16231821 property:P106 ?u }
association football player
The profession of that person is an association football player
association football player
action filter_type
action find
entity James Moore
relation occupation
type occupation
['Manchester', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:James_Moore property:occupation ?u }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P101
Q12737077 Q43229 Q502895
USER
Which occupations do around the same number of organizations and people belong to as that occupation ?
(c(Q43229)|c(Q502895),P101,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q43229
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q937857
relation P101
type Q43229
type Q502895
[[{'concept': 'Q43229'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?u ) WHERE { { ?z property:P101 ?c . ?c rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q43229 } UNION { ?z property:P101 ?c . ?c rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q502895 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:P101 resource:Q937857 . { ?b rdf:type ?n . VALUES ( ?n ) { ( ontology:Q43229 ) ( ontology:Q502895 ) } } } } . FILTER ( ?u = ?r ) }
action approx
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type organization
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action count
action filter_multi_types
action find_reverse
entity association football player
relation field of work
type organization
type common name
[[{'concept': 'organization'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?u ) WHERE { { ?z property:field_of_work ?c . ?c rdf:type ontology:occupation . ?z rdf:type ontology:organization } UNION { ?z property:field_of_work ?c . ?c rdf:type ontology:occupation . ?z rdf:type ontology:common_name } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:field_of_work resource:association_football_player . { ?b rdf:type ?n . VALUES ( ?n ) { ( ontology:organization ) ( ontology:common_name ) } } } } . FILTER ( ?u = ?r ) }
[]
occupation organization common name
Q2855502 Q3621491 Q1051088
SYSTEM
chief of police, archaeologist, Commissioner of Baseball
Q6625963 Q4175034 Q177220 Q911554 Q80687 Q37226 Q652122 Q765778 Q2995983 Q627325 Q33999 Q1288557 Q14915627 Q13418253 Q1495660 Q774306 Q4853732 Q211423 Q706364 Q1231865 Q622807 Q584301 Q6138343 Q4610556 Q1259917 Q2516866 Q2259451 Q947873 Q333634 Q15949613 Q783906 Q1792450 Q11900058 Q3243461 Q5482740 Q3922505 Q1051088 Q138858 Q183888 Q593644 Q7888586 Q81096 Q170790 Q30185 Q15839135 Q1930187 Q14467526 Q6500773 Q212238 Q11642 Q937857 Q157509 Q128124 Q1999841 Q131524 Q1172458 Q2505739 Q1622272 Q653368 Q3455803 Q2707485 Q1402561 Q725440 Q2374149 Q17277248 Q2865798 Q326358 Q2599593 Q705908 Q4164507 Q2205972 Q899758 Q2855502 Q169470 Q36180 Q201788 Q15117302 Q483501 Q1114448 Q17167049 Q1423891 Q3665646 Q11063 Q1028181 Q1392297 Q901 Q1881523 Q18524075 Q1235146 Q36834 Q15995642 Q254651 Q3387717 Q354034 Q158852 Q2252262 Q245068 Q8011071 Q219477 Q1607826 Q154549 Q1709010 Q639669 Q191633 Q33231 Q2490358 Q644687 Q2732142 Q15980158 Q15954519 Q42603 Q3621491 Q11774891 Q6981670
(c(Q43229)|c(Q502895),P101,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q43229
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q937857
relation P101
type Q43229
type Q502895
The [ANSWERS] around the same number of organizations and people belong to as that occupation
[[{'concept': 'Q43229'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?u ) WHERE { { ?z property:P101 ?c . ?c rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q43229 } UNION { ?z property:P101 ?c . ?c rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q502895 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:P101 resource:Q937857 . { ?b rdf:type ?n . VALUES ( ?n ) { ( ontology:Q43229 ) ( ontology:Q502895 ) } } } } . FILTER ( ?u = ?r ) }
novelist legislator singer business magnate secretary teacher sewing organist double-bassist graphic designer actor hieromonk musicologist philologist food critic surgeon children's writer goldsmith art director educationist seiyū bassist wood carver model violinist publisher stage actor television presenter translator short story writer neurologist art historian explorer collector programmer music producer Commissioner of Baseball entertainer software developer chemist chemical engineer engineer mathematician mayor developmental biologist journalist linguist general practitioner civil servant pottery association football player legal guardian audio engineer faqih entrepreneur muhaddith hispanist university teacher district attorney director scenographer military leader prelate botanist member of the National Assembly of Armenia glass artist joiner germanist agency agreement art critic stained-glass artist violist chief of police physicist writer historian volleyball player artist cartoonist specialist in literature minister basketball player astronomer painter Train dispatcher scientist STEM fields mining engineer documentary filmmaker composer religious leader navigator theatre director type designer conductor rapper comedian animal trainer missionary editor carpenter software engineer musician mangaka photographer choreographer illustrator statistician non-fiction writer alchemist priest archaeologist ice hockey player Navajo weaving
The chief of police, archaeologist and Commissioner of Baseball around the same number of organizations and people belong to as that occupation
chief of police archaeologist Commissioner of Baseball
action approx
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type organization
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action count
action filter_multi_types
action find_reverse
entity association football player
relation field of work
type organization
type common name
[[{'concept': 'organization'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?u ) WHERE { { ?z property:field_of_work ?c . ?c rdf:type ontology:occupation . ?z rdf:type ontology:organization } UNION { ?z property:field_of_work ?c . ?c rdf:type ontology:occupation . ?z rdf:type ontology:common_name } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:field_of_work resource:association_football_player . { ?b rdf:type ?n . VALUES ( ?n ) { ( ontology:organization ) ( ontology:common_name ) } } } } . FILTER ( ?u = ?r ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2855502 Q3621491 Q1051088
P101
Q502895
USER
Which people have specialisation in chief of police, archaeologist and Commissioner of Baseball ?
(c(Q502895),P101,Q2855502) (c(Q502895),P101,Q3621491) (c(Q502895),P101,Q1051088)
action union
action filter_type
action find_reverse
entity Q2855502
relation P101
type Q502895
action filter_type
action find_reverse
entity Q3621491
relation P101
type Q502895
action filter_type
action find_reverse
entity Q1051088
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q2855502'] [{'concept': 'Q502895'}, 'P101', 'Q3621491'] [{'concept': 'Q502895'}, 'P101', 'Q1051088']
SELECT DISTINCT ?r WHERE { VALUES ( ?i ) { ( resource:Q2855502 ) ( resource:Q3621491 ) } . ?r property:P101 ?i }
chief of police archaeologist Commissioner of Baseball
action union
action filter_type
action find_reverse
entity chief of police
relation field of work
type common name
action filter_type
action find_reverse
entity archaeologist
relation field of work
type common name
action filter_type
action find_reverse
entity Commissioner of Baseball
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'chief of police'] [{'concept': 'common name'}, 'field of work', 'archaeologist'] [{'concept': 'common name'}, 'field of work', 'Commissioner of Baseball']
SELECT DISTINCT ?r WHERE { VALUES ( ?i ) { ( resource:chief_of_police ) ( resource:archaeologist ) } . ?r property:field_of_work ?i }
[]
common name
Q24731457 Q102139 Q2927496
SYSTEM
Nannette Hegerty, Margrethe II of Denmark, Bud Selig
Q24731457 Q102139 Q2927496
(c(Q502895),P101,Q2855502) (c(Q502895),P101,Q3621491) (c(Q502895),P101,Q1051088)
action union
action filter_type
action find_reverse
entity Q2855502
relation P101
type Q502895
action filter_type
action find_reverse
entity Q3621491
relation P101
type Q502895
action filter_type
action find_reverse
entity Q1051088
relation P101
type Q502895
[ANSWERS] have specialisation in chief of police, archaeologist and Commissioner of Baseball
[{'concept': 'Q502895'}, 'P101', 'Q2855502'] [{'concept': 'Q502895'}, 'P101', 'Q3621491'] [{'concept': 'Q502895'}, 'P101', 'Q1051088']
SELECT DISTINCT ?r WHERE { VALUES ( ?i ) { ( resource:Q2855502 ) ( resource:Q3621491 ) } . ?r property:P101 ?i }
Nannette Hegerty Margrethe II of Denmark Bud Selig
Nannette Hegerty, Margrethe II of Denmark and Bud Selig have specialisation in chief of police, archaeologist and Commissioner of Baseball
Nannette Hegerty Margrethe II of Denmark Bud Selig
action union
action filter_type
action find_reverse
entity chief of police
relation field of work
type common name
action filter_type
action find_reverse
entity archaeologist
relation field of work
type common name
action filter_type
action find_reverse
entity Commissioner of Baseball
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'chief of police'] [{'concept': 'common name'}, 'field of work', 'archaeologist'] [{'concept': 'common name'}, 'field of work', 'Commissioner of Baseball']
SELECT DISTINCT ?r WHERE { VALUES ( ?i ) { ( resource:chief_of_police ) ( resource:archaeologist ) } . ?r property:field_of_work ?i }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2855502
P361
Q327333
USER
What is that occupation a component of ?
(Q2855502,P361,c(Q327333))
action filter_type
action find
entity Q2855502
relation P361
type Q327333
['Q2855502', 'P361', {'concept': 'Q327333'}]
SELECT DISTINCT ?e WHERE { resource:Q2855502 property:P361 ?e . ?e rdf:type ontology:Q327333 }
chief of police
action filter_type
action find
entity chief of police
relation part of
type government agency
['chief of police', 'part of', {'concept': 'government agency'}]
SELECT DISTINCT ?e WHERE { resource:chief_of_police property:part_of ?e . ?e rdf:type ontology:government_agency }
[]
government agency
Clarification for simple ques.
Q2855502
SYSTEM
Did you mean chief of police ?
Q24731457 Q102139 Q2927496
(Q24731457,P361,c(Q327333)) (Q102139,P361,c(Q327333)) (Q2927496,P361,c(Q327333))
[ANSWER]
['Q24731457', 'P361', {'concept': 'Q327333'}] ['Q102139', 'P361', {'concept': 'Q327333'}] ['Q2927496', 'P361', {'concept': 'Q327333'}]
SELECT DISTINCT ?e WHERE { resource:Q2855502 property:P361 ?e . ?e rdf:type ontology:Q327333 }
Nannette Hegerty Margrethe II of Denmark Bud Selig
Did you mean chief of police ?
chief of police
['Nannette Hegerty', 'part of', {'concept': 'government agency'}] ['Margrethe II of Denmark', 'part of', {'concept': 'government agency'}] ['Bud Selig', 'part of', {'concept': 'government agency'}]
SELECT DISTINCT ?e WHERE { resource:chief_of_police property:part_of ?e . ?e rdf:type ontology:government_agency }
[]
Simple Question (Coreferenced)
USER
Yes
(Q2855502,P361,c(Q327333))
['Q2855502', 'P361', {'concept': 'Q327333'}]
['chief of police', 'part of', {'concept': 'government agency'}]
[]
Q35535
SYSTEM
police
Q35535
(Q2855502,P361,c(Q327333))
action filter_type
action find
entity Q2855502
relation P361
type Q327333
That occupation a component of is a [ANSWER]
['Q2855502', 'P361', {'concept': 'Q327333'}]
SELECT DISTINCT ?e WHERE { resource:Q2855502 property:P361 ?e . ?e rdf:type ontology:Q327333 }
police
That occupation a component of is a police
police
action filter_type
action find
entity chief of police
relation part of
type government agency
['chief of police', 'part of', {'concept': 'government agency'}]
SELECT DISTINCT ?e WHERE { resource:chief_of_police property:part_of ?e . ?e rdf:type ontology:government_agency }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2855502
P17
Q15617994
USER
How many administrative territories do chief of police belong to ?
(Q2855502,P17,c(Q15617994))
action count
action filter_type
action find
entity Q2855502
relation P17
type Q15617994
['Q2855502', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:Q15617994 . resource:Q2855502 property:P17 ?z }
chief of police
action count
action filter_type
action find
entity chief of police
relation country
type designation for an administrative territorial entity
['chief of police', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:chief_of_police property:country ?z }
[]
designation for an administrative territorial entity
SYSTEM
2
Q31 Q55
(Q2855502,P17,c(Q15617994))
action count
action filter_type
action find
entity Q2855502
relation P17
type Q15617994
[ANSWER]
['Q2855502', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:Q15617994 . resource:Q2855502 property:P17 ?z }
Belgium Netherlands
2
action count
action filter_type
action find
entity chief of police
relation country
type designation for an administrative territorial entity
['chief of police', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:chief_of_police property:country ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7829861
P159
Q56061
USER
Where is the head office for Towle Marine Aircraft Engineering located ?
(Q7829861,P159,c(Q56061))
action filter_type
action find
entity Q7829861
relation P159
type Q56061
['Q7829861', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q7829861 property:P159 ?t }
Towle Marine Aircraft Engineering
action filter_type
action find
entity Towle Marine Aircraft Engineering
relation headquarters location
type administrative territorial entity
['Towle Marine Aircraft Engineering', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Towle_Marine_Aircraft_Engineering property:headquarters_location ?t }
[]
administrative territorial entity
Q12439
SYSTEM
Detroit
Q12439
(Q7829861,P159,c(Q56061))
action filter_type
action find
entity Q7829861
relation P159
type Q56061
The head office for Towle Marine Aircraft Engineering is located in [ANSWER]
['Q7829861', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q7829861 property:P159 ?t }
Detroit
The head office for Towle Marine Aircraft Engineering is located in Detroit
Detroit
action filter_type
action find
entity Towle Marine Aircraft Engineering
relation headquarters location
type administrative territorial entity
['Towle Marine Aircraft Engineering', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Towle_Marine_Aircraft_Engineering property:headquarters_location ?t }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q12439 Q239580
P190
Q56061
USER
Is Kitwe sister town of that one ?
(Q12439,P190,Q239580)
action is_in
entity Q239580
action find
entity Q12439
relation P190
['Q12439', 'P190', 'Q239580']
ASK WHERE { resource:Q12439 property:P190 resource:Q239580 }
Detroit Kitwe
action is_in
entity Kitwe
action find
entity Detroit
relation sister city
['Detroit', 'sister city', 'Kitwe']
ASK WHERE { resource:Detroit property:sister_city resource:Kitwe }
[]
administrative territorial entity
SYSTEM
YES
(Q12439,P190,Q239580)
action is_in
entity Q239580
action find
entity Q12439
relation P190
[ANSWER]
['Q12439', 'P190', 'Q239580']
ASK WHERE { resource:Q12439 property:P190 resource:Q239580 }
Yes
action is_in
entity Kitwe
action find
entity Detroit
relation sister city
['Detroit', 'sister city', 'Kitwe']
ASK WHERE { resource:Detroit property:sister_city resource:Kitwe }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q18125 Q5818
P190
Q56061
USER
Is Córdoba twin town of Manchester ?
(Q18125,P190,Q5818)
action is_in
entity Q5818
action find
entity Q18125
relation P190
['Q18125', 'P190', 'Q5818']
ASK WHERE { resource:Q18125 property:P190 resource:Q5818 }
Manchester Córdoba
action is_in
entity Córdoba
action find
entity Manchester
relation sister city
['Manchester', 'sister city', 'Córdoba']
ASK WHERE { resource:Manchester property:sister_city resource:Córdoba }
[]
administrative territorial entity
SYSTEM
YES
(Q18125,P190,Q5818)
action is_in
entity Q5818
action find
entity Q18125
relation P190
[ANSWER]
['Q18125', 'P190', 'Q5818']
ASK WHERE { resource:Q18125 property:P190 resource:Q5818 }
Yes
action is_in
entity Córdoba
action find
entity Manchester
relation sister city
['Manchester', 'sister city', 'Córdoba']
ASK WHERE { resource:Manchester property:sister_city resource:Córdoba }
[]