Simple Question (Direct)
Simple Question
Q1258640
P21
Q290
USER
What is the sex of Wolfgang Rotter ?
(Q1258640,P21,c(Q290))
action filter_type
action find
entity Q1258640
relation P21
type Q290
['Q1258640', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1258640 property:P21 ?i . ?i rdf:type ontology:Q290 }
Wolfgang Rotter
action filter_type
action find
entity Wolfgang Rotter
relation gender
type sex
['Wolfgang Rotter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Wolfgang_Rotter property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1258640,P21,c(Q290))
action filter_type
action find
entity Q1258640
relation P21
type Q290
The sex of Wolfgang Rotter is the [ANSWER]
['Q1258640', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1258640 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
The sex of Wolfgang Rotter is the male
male
action filter_type
action find
entity Wolfgang Rotter
relation gender
type sex
['Wolfgang Rotter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Wolfgang_Rotter property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1258640
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q6581097,P102,c(Q7210356))
action filter_type
action find
entity Q1258640
relation P102
type Q7210356
['Q6581097', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { resource:Q1258640 property:P102 ?c . ?c rdf:type ontology:Q7210356 }
Wolfgang Rotter
action filter_type
action find
entity Wolfgang Rotter
relation member of political party
type political organization
['male', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { resource:Wolfgang_Rotter property:member_of_political_party ?c . ?c rdf:type ontology:political_organization }
[]
political organization
Q7320
SYSTEM
Nazi Party
Q7320
(Q6581097,P102,c(Q7210356))
action filter_type
action find
entity Q1258640
relation P102
type Q7210356
[ANSWER] is that person a member of
['Q6581097', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { resource:Q1258640 property:P102 ?c . ?c rdf:type ontology:Q7210356 }
Nazi Party
Nazi Party is that person a member of
Nazi Party
action filter_type
action find
entity Wolfgang Rotter
relation member of political party
type political organization
['male', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { resource:Wolfgang_Rotter property:member_of_political_party ?c . ?c rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1258640
P27
Q1048835
USER
Which political territory is that person a civilian of ?
(Q7320,P27,c(Q1048835))
action filter_type
action find
entity Q1258640
relation P27
type Q1048835
['Q7320', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q1258640 property:P27 ?w . ?w rdf:type ontology:Q1048835 }
Wolfgang Rotter
action filter_type
action find
entity Wolfgang Rotter
relation country of citizenship
type political territorial entity
['Nazi Party', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Wolfgang_Rotter property:country_of_citizenship ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q7320,P27,c(Q1048835))
action filter_type
action find
entity Q1258640
relation P27
type Q1048835
[ANSWER] is that person a civilian of
['Q7320', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q1258640 property:P27 ?w . ?w rdf:type ontology:Q1048835 }
Germany
Germany is that person a civilian of
Germany
action filter_type
action find
entity Wolfgang Rotter
relation country of citizenship
type political territorial entity
['Nazi Party', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Wolfgang_Rotter property:country_of_citizenship ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q334
P530
Q1048835
USER
How many political territories have diplomatic relationships with Germany and Singapore ?
(Q183,P530,c(Q1048835)) (Q334,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q183
relation P530
type Q1048835
action filter_type
action find
entity Q334
relation P530
type Q1048835
['Q183', 'P530', {'concept': 'Q1048835'}] ['Q334', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { resource:Q183 property:P530 ?v . ?v rdf:type ontology:Q1048835 . resource:Q334 property:P530 ?v . ?v rdf:type ontology:Q1048835 }
Germany Singapore
action count
action intersection
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Singapore
relation diplomatic relation
type political territorial entity
['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Singapore', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { resource:Germany property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . resource:Singapore property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q16 Q408
(Q183,P530,c(Q1048835)) (Q334,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q183
relation P530
type Q1048835
action filter_type
action find
entity Q334
relation P530
type Q1048835
[ANSWER]
['Q183', 'P530', {'concept': 'Q1048835'}] ['Q334', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { resource:Q183 property:P530 ?v . ?v rdf:type ontology:Q1048835 . resource:Q334 property:P530 ?v . ?v rdf:type ontology:Q1048835 }
Canada Australia
2
action count
action intersection
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Singapore
relation diplomatic relation
type political territorial entity
['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Singapore', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { resource:Germany property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . resource:Singapore property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1258640
P19
Q56061
USER
Which administrative territory is the place of birth of Wolfgang Rotter ?
(Q1258640,P19,c(Q56061))
action filter_type
action find
entity Q1258640
relation P19
type Q56061
['Q1258640', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1258640 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Wolfgang Rotter
action filter_type
action find
entity Wolfgang Rotter
relation place of birth
type administrative territorial entity
['Wolfgang Rotter', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Wolfgang_Rotter property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q1258640,P19,c(Q56061))
action filter_type
action find
entity Q1258640
relation P19
type Q56061
[ANSWER] is the place of birth of Wolfgang Rotter
['Q1258640', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1258640 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Berlin
Berlin is the place of birth of Wolfgang Rotter
Berlin
action filter_type
action find
entity Wolfgang Rotter
relation place of birth
type administrative territorial entity
['Wolfgang Rotter', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Wolfgang_Rotter property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1258640
P106
Q12737077
USER
What is the job of that person ?
(Q64,P106,c(Q12737077))
action filter_type
action find
entity Q1258640
relation P106
type Q12737077
['Q64', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q1258640 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Wolfgang Rotter
action filter_type
action find
entity Wolfgang Rotter
relation occupation
type occupation
['Berlin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Wolfgang_Rotter property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q1622272
SYSTEM
university teacher
Q1622272
(Q64,P106,c(Q12737077))
action filter_type
action find
entity Q1258640
relation P106
type Q12737077
The job of that person is a [ANSWER]
['Q64', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q1258640 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
university teacher
The job of that person is a university teacher
university teacher
action filter_type
action find
entity Wolfgang Rotter
relation occupation
type occupation
['Berlin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Wolfgang_Rotter property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P101
Q12737077 Q2342494 Q502895
USER
Which occupations are the field of work of around the same number of collectables and people as that occupation ?
(c(Q2342494)|c(Q502895),P101,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1622272
relation P101
type Q2342494
type Q502895
[[{'concept': 'Q2342494'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?f ) WHERE { { ?e rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q2342494 . ?q property:P101 ?e } UNION { ?q property:P101 ?e . ?e rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q502895 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { ?l property:P101 resource:Q1622272 . { ?l rdf:type ?g . VALUES ( ?g ) { ( ontology:Q2342494 ) ( ontology:Q502895 ) } } } } . FILTER ( ?f = ?w ) }
action approx
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action count
action filter_multi_types
action find_reverse
entity university teacher
relation field of work
type collectable
type common name
[[{'concept': 'collectable'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?f ) WHERE { { ?e rdf:type ontology:occupation . ?q rdf:type ontology:collectable . ?q property:field_of_work ?e } UNION { ?q property:field_of_work ?e . ?e rdf:type ontology:occupation . ?q rdf:type ontology:common_name } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { ?l property:field_of_work resource:university_teacher . { ?l rdf:type ?g . VALUES ( ?g ) { ( ontology:collectable ) ( ontology:common_name ) } } } } . FILTER ( ?f = ?w ) }
[]
occupation collectable 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(Q2342494)|c(Q502895),P101,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1622272
relation P101
type Q2342494
type Q502895
[ANSWERS] are the field of work of around the same number of collectables and people as that occupation
[[{'concept': 'Q2342494'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?f ) WHERE { { ?e rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q2342494 . ?q property:P101 ?e } UNION { ?q property:P101 ?e . ?e rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q502895 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { ?l property:P101 resource:Q1622272 . { ?l rdf:type ?g . VALUES ( ?g ) { ( ontology:Q2342494 ) ( ontology:Q502895 ) } } } } . FILTER ( ?f = ?w ) }
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
Chief of police, archaeologist and Commissioner of Baseball are the field of work of around the same number of collectables and people 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 collectable
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action count
action filter_multi_types
action find_reverse
entity university teacher
relation field of work
type collectable
type common name
[[{'concept': 'collectable'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?f ) WHERE { { ?e rdf:type ontology:occupation . ?q rdf:type ontology:collectable . ?q property:field_of_work ?e } UNION { ?q property:field_of_work ?e . ?e rdf:type ontology:occupation . ?q rdf:type ontology:common_name } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { ?l property:field_of_work resource:university_teacher . { ?l rdf:type ?g . VALUES ( ?g ) { ( ontology:collectable ) ( ontology:common_name ) } } } } . FILTER ( ?f = ?w ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories do that occupation belong to ?
(Q1051088,P17,c(Q15617994))
['Q1051088', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q5152815 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Commissioner of Baseball', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Commissioner_of_Baseball property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q1051088
SYSTEM
Did you mean Commissioner of Baseball ?
(Q2855502,P17,c(Q15617994)) (Q3621491,P17,c(Q15617994)) (Q1051088,P17,c(Q15617994))
[ANSWER]
['Q2855502', 'P17', {'concept': 'Q15617994'}] ['Q3621491', 'P17', {'concept': 'Q15617994'}] ['Q1051088', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q5152815 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Commissioner of Baseball ?
Commissioner of Baseball
['chief of police', 'country', {'concept': 'designation for an administrative territorial entity'}] ['archaeologist', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Commissioner of Baseball', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Commissioner_of_Baseball property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1051088,P17,c(Q15617994))
['Q1051088', 'P17', {'concept': 'Q15617994'}]
['Commissioner of Baseball', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q30
(Q1051088,P17,c(Q15617994))
[ANSWER]
['Q1051088', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q5152815 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
1
['Commissioner of Baseball', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Commissioner_of_Baseball property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]