Simple Question (Direct)
Simple Question
Q2034441
P802
Q502895
USER
Who was the teacher of Yokoyama Taikan ?
(Q2034441,P802,c(Q502895))
action filter_type
action find
entity Q2034441
relation P802
type Q502895
['Q2034441', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q2034441 property:P802 ?v . ?v rdf:type ontology:Q502895 }
Yokoyama Taikan
action filter_type
action find
entity Yokoyama Taikan
relation student
type common name
['Yokoyama Taikan', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Yokoyama_Taikan property:student ?v . ?v rdf:type ontology:common_name }
[]
common name
Q11562624
SYSTEM
Kaneo Watanabe
Q11562624
(Q2034441,P802,c(Q502895))
action filter_type
action find
entity Q2034441
relation P802
type Q502895
The teacher of Yokoyama Taikan was [ANSWER]
['Q2034441', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q2034441 property:P802 ?v . ?v rdf:type ontology:Q502895 }
Kaneo Watanabe
The teacher of Yokoyama Taikan was Kaneo Watanabe
Kaneo Watanabe
action filter_type
action find
entity Yokoyama Taikan
relation student
type common name
['Yokoyama Taikan', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Yokoyama_Taikan property:student ?v . ?v rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11562624
P106
Q12737077
USER
What does that person do for a living ?
(Q11562624,P106,c(Q12737077))
action filter_type
action find
entity Q11562624
relation P106
type Q12737077
['Q11562624', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q11562624 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Kaneo Watanabe
action filter_type
action find
entity Kaneo Watanabe
relation occupation
type occupation
['Kaneo Watanabe', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Kaneo_Watanabe property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q1028181
SYSTEM
painter
Q1028181
(Q11562624,P106,c(Q12737077))
action filter_type
action find
entity Q11562624
relation P106
type Q12737077
That person does a [ANSWER] for a living
['Q11562624', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q11562624 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
painter
That person does a painter for a living
painter
action filter_type
action find
entity Kaneo Watanabe
relation occupation
type occupation
['Kaneo Watanabe', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Kaneo_Watanabe property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P101
Q12737077 Q2342494
USER
Which occupations are the field of work of around the same number of collectables as that occupation ?
(c(Q2342494),P101,c(Q12737077))
action approx
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_type
action find
entity Q1028181
relation P101
type Q12737077
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?u ) WHERE { ?r property:P101 ?h . ?h rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q2342494 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { resource:Q1028181 property:P101 ?a . ?a rdf:type ontology:Q12737077 } } . FILTER ( ?u = ?q ) }
action approx
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_type
action find
entity painter
relation field of work
type occupation
[{'concept': 'collectable'}, 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?u ) WHERE { ?r property:field_of_work ?h . ?h rdf:type ontology:occupation . ?r rdf:type ontology:collectable } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { resource:painter property:field_of_work ?a . ?a rdf:type ontology:occupation } } . FILTER ( ?u = ?q ) }
[]
occupation collectable
Q2855502 Q3621491 Q1051088
SYSTEM
chief of police, archaeologist, Commissioner of Baseball
Q6625963 Q4175034 Q177220 Q911554 Q80687 Q37226 Q39631 Q652122 Q765778 Q2995983 Q627325 Q33999 Q1288557 Q14915627 Q13418253 Q1495660 Q774306 Q4853732 Q211423 Q706364 Q1231865 Q622807 Q584301 Q6138343 Q4610556 Q1259917 Q17156912 Q2516866 Q2259451 Q947873 Q333634 Q15949613 Q783906 Q1792450 Q11900058 Q3243461 Q5482740 Q3922505 Q1051088 Q138858 Q183888 Q593644 Q7888586 Q81096 Q170790 Q30185 Q15839135 Q2405480 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 Q16009483 Q1607826 Q154549 Q1709010 Q639669 Q191633 Q33231 Q2490358 Q644687 Q2732142 Q15980158 Q42603 Q3621491 Q11774891 Q6981670
(c(Q2342494),P101,c(Q12737077))
action approx
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_type
action find
entity Q1028181
relation P101
type Q12737077
[ANSWERS] are the field of work of around the same number of collectables as that occupation
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?u ) WHERE { ?r property:P101 ?h . ?h rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q2342494 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { resource:Q1028181 property:P101 ?a . ?a rdf:type ontology:Q12737077 } } . FILTER ( ?u = ?q ) }
novelist legislator singer business magnate secretary teacher physician 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 malariologist 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 voice actor 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 sideshow performer editor carpenter software engineer musician mangaka photographer choreographer illustrator statistician non-fiction writer 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 as that occupation
chief of police archaeologist Commissioner of Baseball
action approx
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_type
action find
entity painter
relation field of work
type occupation
[{'concept': 'collectable'}, 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?u ) WHERE { ?r property:field_of_work ?h . ?h rdf:type ontology:occupation . ?r rdf:type ontology:collectable } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { resource:painter property:field_of_work ?a . ?a rdf:type ontology:occupation } } . FILTER ( ?u = ?q ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saint of exactly 1 occupation ?
(c(Q12737077),P417,c(Q502895))
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?s ) WHERE { ?m rdf:type ontology:Q502895 . ?q rdf:type ontology:Q12737077 . ?q property:P417 ?m } GROUP BY ?m } . FILTER ( ?s = 1 ) }
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?s ) WHERE { ?m rdf:type ontology:common_name . ?q rdf:type ontology:occupation . ?q property:patron_saint ?m } GROUP BY ?m } . FILTER ( ?s = 1 ) }
[]
common name occupation
Q9438 Q60059 Q44281
SYSTEM
Thomas Aquinas, Albertus Magnus, Ignatius of Loyola
Q453698 Q152457 Q43689 Q163900 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q508214 Q9200 Q193507 Q463600 Q43669 Q40662 Q332656 Q320171 Q137947 Q80513 Q324700 Q44015 Q149727 Q232427 Q60059 Q17590 Q271474 Q276148
(c(Q12737077),P417,c(Q502895))
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[ANSWERS] are the patron saint of exactly 1 occupation
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?s ) WHERE { ?m rdf:type ontology:Q502895 . ?q rdf:type ontology:Q12737077 . ?q property:P417 ?m } GROUP BY ?m } . FILTER ( ?s = 1 ) }
Saint Amand Saint Roch Ambrose Saint Francis Xavier Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Urban of Langres John the Apostle Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Charalampus
Thomas Aquinas, Albertus Magnus and Ignatius of Loyola are the patron saint of exactly 1 occupation
Thomas Aquinas Albertus Magnus Ignatius of Loyola
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?s ) WHERE { ?m rdf:type ontology:common_name . ?q rdf:type ontology:occupation . ?q property:patron_saint ?m } GROUP BY ?m } . FILTER ( ?s = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q44281
P841
Q186081
USER
When does the feast day of that person occur ?
(Q44281,P841,c(Q186081))
action filter_type
action find
entity Q44281
relation P841
type Q186081
['Q44281', 'P841', {'concept': 'Q186081'}]
SELECT DISTINCT ?r WHERE { resource:Q44281 property:P841 ?r . ?r rdf:type ontology:Q186081 }
Ignatius of Loyola
action filter_type
action find
entity Ignatius of Loyola
relation feast day
type time interval
['Ignatius of Loyola', 'feast day', {'concept': 'time interval'}]
SELECT DISTINCT ?r WHERE { resource:Ignatius_of_Loyola property:feast_day ?r . ?r rdf:type ontology:time_interval }
[]
time interval
Clarification for simple ques.
Q9438
SYSTEM
Did you mean Thomas Aquinas ?
Q9438 Q60059 Q44281
(Q9438,P841,c(Q186081)) (Q60059,P841,c(Q186081)) (Q44281,P841,c(Q186081))
[ANSWER]
['Q9438', 'P841', {'concept': 'Q186081'}] ['Q60059', 'P841', {'concept': 'Q186081'}] ['Q44281', 'P841', {'concept': 'Q186081'}]
SELECT DISTINCT ?r WHERE { resource:Q44281 property:P841 ?r . ?r rdf:type ontology:Q186081 }
Thomas Aquinas Albertus Magnus Ignatius of Loyola
Did you mean Thomas Aquinas ?
Thomas Aquinas
['Thomas Aquinas', 'feast day', {'concept': 'time interval'}] ['Albertus Magnus', 'feast day', {'concept': 'time interval'}] ['Ignatius of Loyola', 'feast day', {'concept': 'time interval'}]
SELECT DISTINCT ?r WHERE { resource:Ignatius_of_Loyola property:feast_day ?r . ?r rdf:type ontology:time_interval }
[]
Simple Question (Coreferenced)
USER
No, I meant Ignatius of Loyola. Could you tell me the answer for that?
(Q44281,P841,c(Q186081))
Q44281
['Q44281', 'P841', {'concept': 'Q186081'}]
['Ignatius of Loyola', 'feast day', {'concept': 'time interval'}]
[]
Q2715
SYSTEM
July 31
Q2715
(Q44281,P841,c(Q186081))
action filter_type
action find
entity Q44281
relation P841
type Q186081
The feast day of that person occurs on [ANSWER]
['Q44281', 'P841', {'concept': 'Q186081'}]
SELECT DISTINCT ?r WHERE { resource:Q44281 property:P841 ?r . ?r rdf:type ontology:Q186081 }
July 31
The feast day of that person occurs on July 31
July 31
action filter_type
action find
entity Ignatius of Loyola
relation feast day
type time interval
['Ignatius of Loyola', 'feast day', {'concept': 'time interval'}]
SELECT DISTINCT ?r WHERE { resource:Ignatius_of_Loyola property:feast_day ?r . ?r rdf:type ontology:time_interval }
[]