Simple Question (Direct)
Simple Question
Q3009902
P54
Q618123
USER
Which sports team has Cédric Hominal as its member ?
(Q3009902,P54,c(Q618123))
action filter_type
action find
entity Q3009902
relation P54
type Q618123
['Q3009902', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q618123 . resource:Q3009902 property:P54 ?t }
Cédric Hominal
action filter_type
action find
entity Cédric Hominal
relation member of sports team
type geographical object
['Cédric Hominal', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:geographical_object . resource:Cédric_Hominal property:member_of_sports_team ?t }
[]
geographical object
Q1411023
SYSTEM
Tours VB
Q1411023
(Q3009902,P54,c(Q618123))
action filter_type
action find
entity Q3009902
relation P54
type Q618123
[ANSWER] has Cédric Hominal as its member
['Q3009902', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q618123 . resource:Q3009902 property:P54 ?t }
Tours VB
Tours VB has Cédric Hominal as its member
Tours VB
action filter_type
action find
entity Cédric Hominal
relation member of sports team
type geographical object
['Cédric Hominal', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:geographical_object . resource:Cédric_Hominal property:member_of_sports_team ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3009902
P106
Q12737077
USER
What does Cédric Hominal do for a living ?
(Q3009902,P106,c(Q12737077))
action filter_type
action find
entity Q3009902
relation P106
type Q12737077
['Q3009902', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q3009902 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Cédric Hominal
action filter_type
action find
entity Cédric Hominal
relation occupation
type occupation
['Cédric Hominal', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Cédric_Hominal property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q15117302
SYSTEM
volleyball player
Q15117302
(Q3009902,P106,c(Q12737077))
action filter_type
action find
entity Q3009902
relation P106
type Q12737077
Cédric Hominal does a [ANSWER] for a living
['Q3009902', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q3009902 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
volleyball player
Cédric Hominal does a volleyball player for a living
volleyball player
action filter_type
action find
entity Cédric Hominal
relation occupation
type occupation
['Cédric Hominal', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Cédric_Hominal property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P101
Q12737077 Q502895 Q2342494
USER
Which occupations do around the same number of people and collectables belong to as that occupation ?
(c(Q502895)|c(Q2342494),P101,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q15117302
relation P101
type Q502895
type Q2342494
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?x ) WHERE { { ?b property:P101 ?j . ?j rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q502895 } UNION { ?b property:P101 ?j . ?j rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q2342494 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P101 resource:Q15117302 . { ?s rdf:type ?h . VALUES ( ?h ) { ( ontology:Q502895 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?x = ?o ) }
action approx
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity volleyball player
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?x ) WHERE { { ?b property:field_of_work ?j . ?j rdf:type ontology:occupation . ?b rdf:type ontology:common_name } UNION { ?b property:field_of_work ?j . ?j rdf:type ontology:occupation . ?b rdf:type ontology:collectable } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:field_of_work resource:volleyball_player . { ?s rdf:type ?h . VALUES ( ?h ) { ( ontology:common_name ) ( ontology:collectable ) } } } } . FILTER ( ?x = ?o ) }
[]
occupation common name collectable
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(Q502895)|c(Q2342494),P101,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q15117302
relation P101
type Q502895
type Q2342494
[ANSWERS] do around the same number of people and collectables belong to as that occupation
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?x ) WHERE { { ?b property:P101 ?j . ?j rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q502895 } UNION { ?b property:P101 ?j . ?j rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q2342494 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P101 resource:Q15117302 . { ?s rdf:type ?h . VALUES ( ?h ) { ( ontology:Q502895 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?x = ?o ) }
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 do around the same number of people and collectables 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 common name
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity volleyball player
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?x ) WHERE { { ?b property:field_of_work ?j . ?j rdf:type ontology:occupation . ?b rdf:type ontology:common_name } UNION { ?b property:field_of_work ?j . ?j rdf:type ontology:occupation . ?b rdf:type ontology:collectable } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:field_of_work resource:volleyball_player . { ?s rdf:type ?h . VALUES ( ?h ) { ( ontology:common_name ) ( ontology:collectable ) } } } } . FILTER ( ?x = ?o ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1051088
P17
Q15617994
USER
Which administrative territory is that occupation situated in ?
(Q1051088,P17,c(Q15617994))
action filter_type
action find
entity Q1051088
relation P17
type Q15617994
['Q1051088', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q1051088 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Commissioner of Baseball
action filter_type
action find
entity Commissioner of Baseball
relation country
type designation for an administrative territorial entity
['Commissioner of Baseball', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Commissioner_of_Baseball property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q3621491
SYSTEM
Did you mean archaeologist ?
Q2855502 Q3621491 Q1051088
(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 ?g WHERE { resource:Q1051088 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
chief of police archaeologist Commissioner of Baseball
Did you mean archaeologist ?
archaeologist
['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 ?g WHERE { resource:Commissioner_of_Baseball property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Commissioner of Baseball. Could you tell me the answer for that?
(Q1051088,P17,c(Q15617994))
Q1051088
['Q1051088', 'P17', {'concept': 'Q15617994'}]
['Commissioner of Baseball', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q1051088,P17,c(Q15617994))
action filter_type
action find
entity Q1051088
relation P17
type Q15617994
That occupation is situated in [ANSWER]
['Q1051088', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q1051088 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
United States of America
That occupation is situated in United States of America
United States of America
action filter_type
action find
entity Commissioner of Baseball
relation country
type designation for an administrative territorial entity
['Commissioner of Baseball', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Commissioner_of_Baseball property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q30 Q91
P6
Q502895
USER
Is that administrative territory the head of goverment of Abraham Lincoln ?
(Q30,P6,Q91)
action is_in
entity Q91
action find
entity Q30
relation P6
['Q30', 'P6', 'Q91']
ASK WHERE { resource:Q30 property:P6 resource:Q91 }
United States of America Abraham Lincoln
action is_in
entity Abraham Lincoln
action find
entity United States of America
relation head of government
['United States of America', 'head of government', 'Abraham Lincoln']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Abraham_Lincoln }
[]
common name
SYSTEM
YES
(Q30,P6,Q91)
action is_in
entity Q91
action find
entity Q30
relation P6
[ANSWER]
['Q30', 'P6', 'Q91']
ASK WHERE { resource:Q30 property:P6 resource:Q91 }
Yes
action is_in
entity Abraham Lincoln
action find
entity United States of America
relation head of government
['United States of America', 'head of government', 'Abraham Lincoln']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Abraham_Lincoln }
[]