Simple Question (Direct)
Simple Question
Q792122
P19
Q515
USER
Which city is the birthplace of László Beke ?
(Q792122,P19,c(Q515))
action filter_type
action find
entity Q792122
relation P19
type Q515
['Q792122', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q792122 property:P19 ?w . ?w rdf:type ontology:Q515 }
László Beke
action filter_type
action find
entity László Beke
relation place of birth
type city
['László Beke', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:László_Beke property:place_of_birth ?w . ?w rdf:type ontology:city }
[]
city
Q42007
SYSTEM
Szombathely
Q42007
(Q792122,P19,c(Q515))
action filter_type
action find
entity Q792122
relation P19
type Q515
[ANSWER] is the birthplace of László Beke
['Q792122', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q792122 property:P19 ?w . ?w rdf:type ontology:Q515 }
Szombathely
Szombathely is the birthplace of László Beke
Szombathely
action filter_type
action find
entity László Beke
relation place of birth
type city
['László Beke', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:László_Beke property:place_of_birth ?w . ?w rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q42007
P1376
Q1162835
USER
Which district of Hungary has that city has its center of administration ?
(Q42007,P1376,c(Q1162835))
action filter_type
action find
entity Q42007
relation P1376
type Q1162835
['Q42007', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?a WHERE { resource:Q42007 property:P1376 ?a . ?a rdf:type ontology:Q1162835 }
Szombathely
action filter_type
action find
entity Szombathely
relation capital of
type district of Hungary
['Szombathely', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?a WHERE { resource:Szombathely property:capital_of ?a . ?a rdf:type ontology:district_of_Hungary }
[]
district of Hungary
Q830871
SYSTEM
Szombathely  District
Q830871
(Q42007,P1376,c(Q1162835))
action filter_type
action find
entity Q42007
relation P1376
type Q1162835
District Szombathely District has that city has its center of administration
['Q42007', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?a WHERE { resource:Q42007 property:P1376 ?a . ?a rdf:type ontology:Q1162835 }
Szombathely  District
District Szombathely District has that city has its center of administration
Szombathely  District
action filter_type
action find
entity Szombathely
relation capital of
type district of Hungary
['Szombathely', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?a WHERE { resource:Szombathely property:capital_of ?a . ?a rdf:type ontology:district_of_Hungary }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q47746 Q792122
P106
Q12737077
USER
Which occupations are the job of László Beke or Evaristus ?
OR((Q792122,P106,c(Q12737077)), (Q47746,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q792122
relation P106
action find
entity Q47746
relation P106
type Q12737077
{'OR': [['Q792122', 'P106', {'concept': 'Q12737077'}], ['Q47746', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?l ) { ( resource:Q47746 ) ( resource:Q792122 ) } . ?l property:P106 ?m } . ?m rdf:type ontology:Q12737077 }
Evaristus László Beke
action filter_type
action union
action find
entity László Beke
relation occupation
action find
entity Evaristus
relation occupation
type occupation
{'OR': [['László Beke', 'occupation', {'concept': 'occupation'}], ['Evaristus', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?l ) { ( resource:Evaristus ) ( resource:László_Beke ) } . ?l property:occupation ?m } . ?m rdf:type ontology:occupation }
[]
occupation
Q250867 Q1792450
SYSTEM
Catholic priest, art historian
Q250867 Q1792450
OR((Q792122,P106,c(Q12737077)), (Q47746,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q792122
relation P106
action find
entity Q47746
relation P106
type Q12737077
[ANSWERS] are the job of László Beke or Evaristus
{'OR': [['Q792122', 'P106', {'concept': 'Q12737077'}], ['Q47746', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?l ) { ( resource:Q47746 ) ( resource:Q792122 ) } . ?l property:P106 ?m } . ?m rdf:type ontology:Q12737077 }
Catholic priest art historian
Catholic priest and art historian are the job of László Beke or Evaristus
Catholic priest art historian
action filter_type
action union
action find
entity László Beke
relation occupation
action find
entity Evaristus
relation occupation
type occupation
{'OR': [['László Beke', 'occupation', {'concept': 'occupation'}], ['Evaristus', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?l ) { ( resource:Evaristus ) ( resource:László_Beke ) } . ?l property:occupation ?m } . ?m rdf:type ontology:occupation }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P101
Q12737077 Q2342494
USER
Which occupations are the field of work of approximately the same number of collectables as that occupation ?
(c(Q2342494),P101,c(Q12737077))
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?z property:Q627436 ?y . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q528892 }
[{'concept': 'collectable'}, 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?z property:field_of_work ?y . ?z rdf:type ontology:collectable . ?y rdf:type ontology:occupation }
[]
occupation collectable
Comparative|More/Less|Single entity type|Clarification
Q250867
SYSTEM
Did you mean Catholic priest ?
(c(Q2342494),P101,c(Q12737077))
[ANSWER]
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?z property:Q627436 ?y . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q528892 }
Did you mean Catholic priest ?
Catholic priest
[{'concept': 'collectable'}, 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?z property:field_of_work ?y . ?z rdf:type ontology:collectable . ?y rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
USER
No, I meant art historian. Could you tell me the answer for that?
(c(Q2342494),P101,c(Q12737077))
Q1792450
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q12737077'}]
[{'concept': 'collectable'}, 'field of work', {'concept': 'occupation'}]
[]
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))
[ANSWERS] are the field of work of approximately the same number of collectables as that occupation
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?z property:Q627436 ?y . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q528892 }
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 approximately the same number of collectables as that occupation
chief of police archaeologist Commissioner of Baseball
[{'concept': 'collectable'}, 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?z property:field_of_work ?y . ?z rdf:type ontology:collectable . ?y rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3621491
P101
Q502895
USER
Which person has his/her area as that occupation ?
(c(Q502895),P101,Q3621491)
action filter_type
action find_reverse
entity Q3621491
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q3621491']
SELECT DISTINCT ?d WHERE { ?d property:P101 resource:Q3621491 . ?d rdf:type ontology:Q502895 }
archaeologist
action filter_type
action find_reverse
entity archaeologist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'archaeologist']
SELECT DISTINCT ?d WHERE { ?d property:field_of_work resource:archaeologist . ?d rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1051088
SYSTEM
Did you mean Commissioner of Baseball ?
Q2855502 Q3621491 Q1051088
(c(Q502895),P101,Q2855502) (c(Q502895),P101,Q3621491) (c(Q502895),P101,Q1051088)
[ANSWER]
[{'concept': 'Q502895'}, 'P101', 'Q2855502'] [{'concept': 'Q502895'}, 'P101', 'Q3621491'] [{'concept': 'Q502895'}, 'P101', 'Q1051088']
SELECT DISTINCT ?d WHERE { ?d property:P101 resource:Q3621491 . ?d rdf:type ontology:Q502895 }
chief of police archaeologist Commissioner of Baseball
Did you mean Commissioner of Baseball ?
Commissioner of Baseball
[{'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 ?d WHERE { ?d property:field_of_work resource:archaeologist . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant archaeologist. Could you tell me the answer for that?
(c(Q502895),P101,Q3621491)
Q3621491
[{'concept': 'Q502895'}, 'P101', 'Q3621491']
[{'concept': 'common name'}, 'field of work', 'archaeologist']
[]
Q102139
SYSTEM
Margrethe II of Denmark
Q102139
(c(Q502895),P101,Q3621491)
action filter_type
action find_reverse
entity Q3621491
relation P101
type Q502895
[ANSWER] has his/her area as that occupation
[{'concept': 'Q502895'}, 'P101', 'Q3621491']
SELECT DISTINCT ?d WHERE { ?d property:P101 resource:Q3621491 . ?d rdf:type ontology:Q502895 }
Margrethe II of Denmark
Margrethe II of Denmark has his/her area as that occupation
Margrethe II of Denmark
action filter_type
action find_reverse
entity archaeologist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'archaeologist']
SELECT DISTINCT ?d WHERE { ?d property:field_of_work resource:archaeologist . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P106
Q4164871 Q12737077
USER
How many positions and occupations are the professions of that person ?
(Q102139,P106,c(Q4164871)) (Q102139,P106,c(Q12737077)) (Q102139,P106,c(Q4164871)) (Q102139,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q102139
relation P106
type Q4164871
action filter_type
action find
entity Q102139
relation P106
type Q12737077
['Q102139', 'P106', {'concept': 'Q4164871'}] ['Q102139', 'P106', {'concept': 'Q12737077'}] ['Q102139', 'P106', {'concept': 'Q4164871'}] ['Q102139', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { ?y rdf:type ontology:Q4164871 . resource:Q102139 property:P106 ?y } UNION { resource:Q102139 property:P106 ?y . ?y rdf:type ontology:Q12737077 } }
action count
action union
action filter_type
action find
entity Margrethe II of Denmark
relation occupation
type position
action filter_type
action find
entity Margrethe II of Denmark
relation occupation
type occupation
['Margrethe II of Denmark', 'occupation', {'concept': 'position'}] ['Margrethe II of Denmark', 'occupation', {'concept': 'occupation'}] ['Margrethe II of Denmark', 'occupation', {'concept': 'position'}] ['Margrethe II of Denmark', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { ?y rdf:type ontology:position . resource:Margrethe_II_of_Denmark property:occupation ?y } UNION { resource:Margrethe_II_of_Denmark property:occupation ?y . ?y rdf:type ontology:occupation } }
[]
position occupation
SYSTEM
1 positions and 1 occupations
Q2000124 Q18341329
(Q102139,P106,c(Q4164871)) (Q102139,P106,c(Q12737077)) (Q102139,P106,c(Q4164871)) (Q102139,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q102139
relation P106
type Q4164871
action filter_type
action find
entity Q102139
relation P106
type Q12737077
[ANSWER]
['Q102139', 'P106', {'concept': 'Q4164871'}] ['Q102139', 'P106', {'concept': 'Q12737077'}] ['Q102139', 'P106', {'concept': 'Q4164871'}] ['Q102139', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { ?y rdf:type ontology:Q4164871 . resource:Q102139 property:P106 ?y } UNION { resource:Q102139 property:P106 ?y . ?y rdf:type ontology:Q12737077 } }
postage stamp designer monarch of Denmark
1 positions and 1 occupations
action count
action union
action filter_type
action find
entity Margrethe II of Denmark
relation occupation
type position
action filter_type
action find
entity Margrethe II of Denmark
relation occupation
type occupation
['Margrethe II of Denmark', 'occupation', {'concept': 'position'}] ['Margrethe II of Denmark', 'occupation', {'concept': 'occupation'}] ['Margrethe II of Denmark', 'occupation', {'concept': 'position'}] ['Margrethe II of Denmark', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { { ?y rdf:type ontology:position . resource:Margrethe_II_of_Denmark property:occupation ?y } UNION { resource:Margrethe_II_of_Denmark property:occupation ?y . ?y rdf:type ontology:occupation } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q102139
P110
Q571
USER
Which book was illustrated by Margrethe II of Denmark ?
(c(Q571),P110,Q102139)
action filter_type
action find_reverse
entity Q102139
relation P110
type Q571
[{'concept': 'Q571'}, 'P110', 'Q102139']
SELECT DISTINCT ?w WHERE { ?w property:P110 resource:Q102139 . ?w rdf:type ontology:Q571 }
Margrethe II of Denmark
action filter_type
action find_reverse
entity Margrethe II of Denmark
relation illustrator
type book
[{'concept': 'book'}, 'illustrator', 'Margrethe II of Denmark']
SELECT DISTINCT ?w WHERE { ?w property:illustrator resource:Margrethe_II_of_Denmark . ?w rdf:type ontology:book }
[]
book
Q5033513
SYSTEM
Cantabile
Q5033513
(c(Q571),P110,Q102139)
action filter_type
action find_reverse
entity Q102139
relation P110
type Q571
[ANSWER] was illustrated by Margrethe II of Denmark
[{'concept': 'Q571'}, 'P110', 'Q102139']
SELECT DISTINCT ?w WHERE { ?w property:P110 resource:Q102139 . ?w rdf:type ontology:Q571 }
Cantabile
Cantabile was illustrated by Margrethe II of Denmark
Cantabile
action filter_type
action find_reverse
entity Margrethe II of Denmark
relation illustrator
type book
[{'concept': 'book'}, 'illustrator', 'Margrethe II of Denmark']
SELECT DISTINCT ?w WHERE { ?w property:illustrator resource:Margrethe_II_of_Denmark . ?w rdf:type ontology:book }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q102139
P138
Q271669
USER
Which landform comes from Margrethe II of Denmark ?
(c(Q271669),P138,Q102139)
action filter_type
action find_reverse
entity Q102139
relation P138
type Q271669
[{'concept': 'Q271669'}, 'P138', 'Q102139']
SELECT DISTINCT ?w WHERE { ?w property:P138 resource:Q102139 . ?w rdf:type ontology:Q271669 }
Margrethe II of Denmark
action filter_type
action find_reverse
entity Margrethe II of Denmark
relation named after
type landform
[{'concept': 'landform'}, 'named after', 'Margrethe II of Denmark']
SELECT DISTINCT ?w WHERE { ?w property:named_after resource:Margrethe_II_of_Denmark . ?w rdf:type ontology:landform }
[]
landform
Q21857443
SYSTEM
Queen Margrethe II Land
Q21857443
(c(Q271669),P138,Q102139)
action filter_type
action find_reverse
entity Q102139
relation P138
type Q271669
[ANSWER] comes from Margrethe II of Denmark
[{'concept': 'Q271669'}, 'P138', 'Q102139']
SELECT DISTINCT ?w WHERE { ?w property:P138 resource:Q102139 . ?w rdf:type ontology:Q271669 }
Queen Margrethe II Land
Queen Margrethe II Land comes from Margrethe II of Denmark
Queen Margrethe II Land
action filter_type
action find_reverse
entity Margrethe II of Denmark
relation named after
type landform
[{'concept': 'landform'}, 'named after', 'Margrethe II of Denmark']
SELECT DISTINCT ?w WHERE { ?w property:named_after resource:Margrethe_II_of_Denmark . ?w rdf:type ontology:landform }
[]