Simple Question (Direct)
Simple Question
Q11671011
P734
Q82799
USER
Who is associated with Takahashi Kenji ?
(Q11671011,P734,c(Q82799))
action filter_type
action find
entity Q11671011
relation P734
type Q82799
['Q11671011', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q11671011 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Takahashi Kenji
action filter_type
action find
entity Takahashi Kenji
relation family name
type name
['Takahashi Kenji', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Takahashi_Kenji property:family_name ?x . ?x rdf:type ontology:name }
[]
name
Q16884188
SYSTEM
Takahashi
Q16884188
(Q11671011,P734,c(Q82799))
action filter_type
action find
entity Q11671011
relation P734
type Q82799
[ANSWER] is associated with [ANSWER] Kenji
['Q11671011', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q11671011 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Takahashi
Takahashi is associated with Takahashi Kenji
Takahashi
action filter_type
action find
entity Takahashi Kenji
relation family name
type name
['Takahashi Kenji', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Takahashi_Kenji property:family_name ?x . ?x rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11671011
P69
Q3918
USER
Which university is the alma mater of Takahashi Kenji ?
(Q11671011,P69,c(Q3918))
action filter_type
action find
entity Q11671011
relation P69
type Q3918
['Q11671011', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q3918 . resource:Q11671011 property:P69 ?e }
Takahashi Kenji
action filter_type
action find
entity Takahashi Kenji
relation educated at
type university
['Takahashi Kenji', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:university . resource:Takahashi_Kenji property:educated_at ?e }
[]
university
Q7842
SYSTEM
University of Tokyo
Q7842
(Q11671011,P69,c(Q3918))
action filter_type
action find
entity Q11671011
relation P69
type Q3918
Tokyo [ANSWER] is the alma mater of Takahashi Kenji
['Q11671011', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q3918 . resource:Q11671011 property:P69 ?e }
University of Tokyo
Tokyo University of Tokyo is the alma mater of Takahashi Kenji
University of Tokyo
action filter_type
action find
entity Takahashi Kenji
relation educated at
type university
['Takahashi Kenji', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:university . resource:Takahashi_Kenji property:educated_at ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11671011
P106
Q12737077
USER
What is the profession of that person ?
(Q7842,P106,c(Q12737077))
action filter_type
action find
entity Q11671011
relation P106
type Q12737077
['Q7842', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q11671011 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Takahashi Kenji
action filter_type
action find
entity Takahashi Kenji
relation occupation
type occupation
['University of Tokyo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Takahashi_Kenji property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q333634
SYSTEM
translator
Q333634
(Q7842,P106,c(Q12737077))
action filter_type
action find
entity Q11671011
relation P106
type Q12737077
The profession of that person is a [ANSWER]
['Q7842', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q11671011 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
translator
The profession of that person is a translator
translator
action filter_type
action find
entity Takahashi Kenji
relation occupation
type occupation
['University of Tokyo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Takahashi_Kenji property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P101
Q12737077 Q2342494
USER
Which occupations are the area 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 Q333634
relation P101
type Q12737077
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:Q333634 property:P101 ?f . ?f rdf:type ontology:Q12737077 } } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?t ) WHERE { ?w property:P101 ?s . ?w rdf:type ontology:Q2342494 . ?s rdf:type ontology:Q12737077 } GROUP BY ?s } }
action approx
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_type
action find
entity translator
relation field of work
type occupation
[{'concept': 'collectable'}, 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:translator property:field_of_work ?f . ?f rdf:type ontology:occupation } } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?t ) WHERE { ?w property:field_of_work ?s . ?w rdf:type ontology:collectable . ?s rdf:type ontology:occupation } GROUP BY ?s } }
[]
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 Q333634
relation P101
type Q12737077
[ANSWERS] are the area of around the same number of collectables as that occupation
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:Q333634 property:P101 ?f . ?f rdf:type ontology:Q12737077 } } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?t ) WHERE { ?w property:P101 ?s . ?w rdf:type ontology:Q2342494 . ?s rdf:type ontology:Q12737077 } GROUP BY ?s } }
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 area 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 translator
relation field of work
type occupation
[{'concept': 'collectable'}, 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:translator property:field_of_work ?f . ?f rdf:type ontology:occupation } } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?t ) WHERE { ?w property:field_of_work ?s . ?w rdf:type ontology:collectable . ?s rdf:type ontology:occupation } GROUP BY ?s } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2855502 Q3621491 Q1051088
P101
Q502895
USER
Who works in the domain of 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 ?b WHERE { { ?b property:P101 resource:Q2855502 . ?b rdf:type ontology:Q502895 } UNION { ?b property:P101 resource:Q3621491 . ?b rdf:type ontology:Q502895 } }
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 ?b WHERE { { ?b property:field_of_work resource:chief_of_police . ?b rdf:type ontology:common_name } UNION { ?b property:field_of_work resource:archaeologist . ?b rdf:type ontology:common_name } }
[]
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] work in the domain of chief of police, archaeologist and Commissioner of Baseball
[{'concept': 'Q502895'}, 'P101', 'Q2855502'] [{'concept': 'Q502895'}, 'P101', 'Q3621491'] [{'concept': 'Q502895'}, 'P101', 'Q1051088']
SELECT DISTINCT ?b WHERE { { ?b property:P101 resource:Q2855502 . ?b rdf:type ontology:Q502895 } UNION { ?b property:P101 resource:Q3621491 . ?b rdf:type ontology:Q502895 } }
Nannette Hegerty Margrethe II of Denmark Bud Selig
Nannette Hegerty, Margrethe II of Denmark and Bud Selig work in the domain of 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 ?b WHERE { { ?b property:field_of_work resource:chief_of_police . ?b rdf:type ontology:common_name } UNION { ?b property:field_of_work resource:archaeologist . ?b rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q24731457
P108
Q895526
USER
Which authority organ employs that person ?
(Q24731457,P108,c(Q895526))
action filter_type
action find
entity Q24731457
relation P108
type Q895526
['Q24731457', 'P108', {'concept': 'Q895526'}]
SELECT DISTINCT ?k WHERE { resource:Q24731457 property:P108 ?k . ?k rdf:type ontology:Q895526 }
Nannette Hegerty
action filter_type
action find
entity Nannette Hegerty
relation employer
type authority organ
['Nannette Hegerty', 'employer', {'concept': 'authority organ'}]
SELECT DISTINCT ?k WHERE { resource:Nannette_Hegerty property:employer ?k . ?k rdf:type ontology:authority_organ }
[]
authority organ
Clarification for simple ques.
Q102139
SYSTEM
Did you mean Margrethe II of Denmark ?
Q24731457 Q102139 Q2927496
(Q24731457,P108,c(Q895526)) (Q102139,P108,c(Q895526)) (Q2927496,P108,c(Q895526))
[ANSWER]
['Q24731457', 'P108', {'concept': 'Q895526'}] ['Q102139', 'P108', {'concept': 'Q895526'}] ['Q2927496', 'P108', {'concept': 'Q895526'}]
SELECT DISTINCT ?k WHERE { resource:Q24731457 property:P108 ?k . ?k rdf:type ontology:Q895526 }
Nannette Hegerty Margrethe II of Denmark Bud Selig
Did you mean Margrethe II of Denmark ?
Margrethe II of Denmark
['Nannette Hegerty', 'employer', {'concept': 'authority organ'}] ['Margrethe II of Denmark', 'employer', {'concept': 'authority organ'}] ['Bud Selig', 'employer', {'concept': 'authority organ'}]
SELECT DISTINCT ?k WHERE { resource:Nannette_Hegerty property:employer ?k . ?k rdf:type ontology:authority_organ }
[]
Simple Question (Coreferenced)
USER
No, I meant Nannette Hegerty. Could you tell me the answer for that?
(Q24731457,P108,c(Q895526))
Q24731457
['Q24731457', 'P108', {'concept': 'Q895526'}]
['Nannette Hegerty', 'employer', {'concept': 'authority organ'}]
[]
Q6861797
SYSTEM
Milwaukee Police Department
Q6861797
(Q24731457,P108,c(Q895526))
action filter_type
action find
entity Q24731457
relation P108
type Q895526
[ANSWER] employs that person
['Q24731457', 'P108', {'concept': 'Q895526'}]
SELECT DISTINCT ?k WHERE { resource:Q24731457 property:P108 ?k . ?k rdf:type ontology:Q895526 }
Milwaukee Police Department
Milwaukee Police Department employs that person
Milwaukee Police Department
action filter_type
action find
entity Nannette Hegerty
relation employer
type authority organ
['Nannette Hegerty', 'employer', {'concept': 'authority organ'}]
SELECT DISTINCT ?k WHERE { resource:Nannette_Hegerty property:employer ?k . ?k rdf:type ontology:authority_organ }
[]