Simple Question (Direct)
Simple Question
Q1655867
P47
Q1048835
USER
Which political territories are adjacent to Sienes ?
(Q1655867,P47,c(Q1048835))
action filter_type
action find
entity Q1655867
relation P47
type Q1048835
['Q1655867', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1048835 . resource:Q1655867 property:P47 ?b }
Sienes
action filter_type
action find
entity Sienes
relation shares border with
type political territorial entity
['Sienes', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:political_territorial_entity . resource:Sienes property:shares_border_with ?b }
[]
political territorial entity
Q484115 Q830001 Q47475
SYSTEM
Baraona, Alpanseque, Sigüenza
Q1656836 Q484115 Q47475 Q830001 Q830548 Q834855
(Q1655867,P47,c(Q1048835))
action filter_type
action find
entity Q1655867
relation P47
type Q1048835
[ANSWERS] are adjacent to Sienes
['Q1655867', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1048835 . resource:Q1655867 property:P47 ?b }
Valdelcubo Baraona Sigüenza Alpanseque Miño de Medinaceli Yelo
Baraona, Alpanseque and Sigüenza are adjacent to Sienes
Baraona Alpanseque Sigüenza
action filter_type
action find
entity Sienes
relation shares border with
type political territorial entity
['Sienes', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:political_territorial_entity . resource:Sienes property:shares_border_with ?b }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q484115 Q830001 Q47475
P1001
Q12737077
USER
Which occupations have jurisdiction over those political territories ?
(c(Q12737077),P1001,Q484115) (c(Q12737077),P1001,Q830001) (c(Q12737077),P1001,Q47475)
action filter_type
action find_reverse
entity prev_answer
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q484115'] [{'concept': 'Q12737077'}, 'P1001', 'Q830001'] [{'concept': 'Q12737077'}, 'P1001', 'Q47475']
SELECT DISTINCT ?f WHERE { VALUES ( ?r ) { ( resource:Q1656836 ) ( resource:Q484115 ) ( resource:Q47475 ) } . ?f rdf:type ontology:Q12737077 . ?f property:P1001 ?r }
Baraona Alpanseque Sigüenza
action filter_type
action find_reverse
entity prev_answer
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Baraona'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Alpanseque'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Sigüenza']
SELECT DISTINCT ?f WHERE { VALUES ( ?r ) { ( resource:Valdelcubo ) ( resource:Baraona ) ( resource:Sigüenza ) } . ?f rdf:type ontology:occupation . ?f property:applies_to_jurisdiction ?r }
[]
occupation
Q26698290 Q26700684 Q26698279
SYSTEM
mayor of Baraona, mayor of Alpanseque, mayor of Sigüenza
Q26698290 Q26700684 Q26698279
(c(Q12737077),P1001,Q484115) (c(Q12737077),P1001,Q830001) (c(Q12737077),P1001,Q47475)
action filter_type
action find_reverse
entity prev_answer
relation P1001
type Q12737077
[ANSWERS] have jurisdiction over those political territories
[{'concept': 'Q12737077'}, 'P1001', 'Q484115'] [{'concept': 'Q12737077'}, 'P1001', 'Q830001'] [{'concept': 'Q12737077'}, 'P1001', 'Q47475']
SELECT DISTINCT ?f WHERE { VALUES ( ?r ) { ( resource:Q1656836 ) ( resource:Q484115 ) ( resource:Q47475 ) } . ?f rdf:type ontology:Q12737077 . ?f property:P1001 ?r }
mayor of Baraona mayor of Alpanseque mayor of Sigüenza
Mayor of Baraona, mayor of Alpanseque and mayor of Sigüenza have jurisdiction over those political territories
mayor of Baraona mayor of Alpanseque mayor of Sigüenza
action filter_type
action find_reverse
entity prev_answer
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Baraona'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Alpanseque'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Sigüenza']
SELECT DISTINCT ?f WHERE { VALUES ( ?r ) { ( resource:Valdelcubo ) ( resource:Baraona ) ( resource:Sigüenza ) } . ?f rdf:type ontology:occupation . ?f property:applies_to_jurisdiction ?r }
[]
Clarification
Simple Question|Single Entity|Indirect
Q26700684
P1313
Q1048835
USER
Which political territory has that occupation as title of head of government ?
(c(Q1048835),P1313,Q26700684)
action filter_type
action find_reverse
entity Q26700684
relation P1313
type Q1048835
[{'concept': 'Q1048835'}, 'P1313', 'Q26700684']
SELECT DISTINCT ?w WHERE { ?w property:P1313 resource:Q26700684 . ?w rdf:type ontology:Q1048835 }
mayor of Alpanseque
action filter_type
action find_reverse
entity mayor of Alpanseque
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Alpanseque']
SELECT DISTINCT ?w WHERE { ?w property:office_held_by_head_of_government resource:mayor_of_Alpanseque . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q26698279
SYSTEM
Did you mean mayor of Sigüenza ?
Q26698290 Q26700684 Q26698279
(c(Q1048835),P1313,Q26698290) (c(Q1048835),P1313,Q26700684) (c(Q1048835),P1313,Q26698279)
[ANSWER]
[{'concept': 'Q1048835'}, 'P1313', 'Q26698290'] [{'concept': 'Q1048835'}, 'P1313', 'Q26700684'] [{'concept': 'Q1048835'}, 'P1313', 'Q26698279']
SELECT DISTINCT ?w WHERE { ?w property:P1313 resource:Q26700684 . ?w rdf:type ontology:Q1048835 }
mayor of Baraona mayor of Alpanseque mayor of Sigüenza
Did you mean mayor of Sigüenza ?
mayor of Sigüenza
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Baraona'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Alpanseque'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Sigüenza']
SELECT DISTINCT ?w WHERE { ?w property:office_held_by_head_of_government resource:mayor_of_Alpanseque . ?w rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant mayor of Alpanseque. Could you tell me the answer for that?
(c(Q1048835),P1313,Q26700684)
Q26700684
[{'concept': 'Q1048835'}, 'P1313', 'Q26700684']
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Alpanseque']
[]
Q830001
SYSTEM
Alpanseque
Q830001
(c(Q1048835),P1313,Q26700684)
action filter_type
action find_reverse
entity Q26700684
relation P1313
type Q1048835
[ANSWER] has that occupation as title of head of government
[{'concept': 'Q1048835'}, 'P1313', 'Q26700684']
SELECT DISTINCT ?w WHERE { ?w property:P1313 resource:Q26700684 . ?w rdf:type ontology:Q1048835 }
Alpanseque
Alpanseque has that occupation as title of head of government
Alpanseque
action filter_type
action find_reverse
entity mayor of Alpanseque
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Alpanseque']
SELECT DISTINCT ?w WHERE { ?w property:office_held_by_head_of_government resource:mayor_of_Alpanseque . ?w rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q26700684
P17
Q15617994
USER
Which administrative territory is mayor of Alpanseque a part of ?
(Q26700684,P17,c(Q15617994))
action filter_type
action find
entity Q26700684
relation P17
type Q15617994
['Q26700684', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q26700684 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
mayor of Alpanseque
action filter_type
action find
entity mayor of Alpanseque
relation country
type designation for an administrative territorial entity
['mayor of Alpanseque', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:mayor_of_Alpanseque property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q26700684,P17,c(Q15617994))
action filter_type
action find
entity Q26700684
relation P17
type Q15617994
[ANSWER] is mayor of Alpanseque a part of
['Q26700684', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q26700684 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Spain
Spain is mayor of Alpanseque a part of
Spain
action filter_type
action find
entity mayor of Alpanseque
relation country
type designation for an administrative territorial entity
['mayor of Alpanseque', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:mayor_of_Alpanseque property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29
P37
Q34770
USER
Which languages are the official languages of that administrative territory ?
(Q29,P37,c(Q34770))
action filter_type
action find
entity Q29
relation P37
type Q34770
['Q29', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q34770 . resource:Q29 property:P37 ?b }
Spain
action filter_type
action find
entity Spain
relation official language
type language
['Spain', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:language . resource:Spain property:official_language ?b }
[]
language
Q8752 Q1321
SYSTEM
Basque, Spanish
Q8752 Q1321
(Q29,P37,c(Q34770))
action filter_type
action find
entity Q29
relation P37
type Q34770
Of [ANSWERS] are the official languages of that administrative territory
['Q29', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q34770 . resource:Q29 property:P37 ?b }
Basque Spanish
Of Basque and Spanish are the official languages of that administrative territory
Basque Spanish
action filter_type
action find
entity Spain
relation official language
type language
['Spain', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:language . resource:Spain property:official_language ?b }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P37
Q34770 Q1048835 Q7275
USER
Which languages are the official languages of min number of political territories and states ?
(c(Q1048835)|c(Q7275),P37,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?f ) { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?w ) WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q7275 ) } } GROUP BY ?e } } . { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?v ) WHERE { VALUES ( ?b ) { ( ontology:Q7275 ) ( ontology:Q1048835 ) } . ?n rdf:type ?b } GROUP BY ?o } . FILTER ( ?v = ?f ) }
action argmin
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type state
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?f ) { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?w ) WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:state ) } } GROUP BY ?e } } . { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?v ) WHERE { VALUES ( ?b ) { ( ontology:state ) ( ontology:political_territorial_entity ) } . ?n rdf:type ?b } GROUP BY ?o } . FILTER ( ?v = ?f ) }
[]
language political territorial entity state
Q33251 Q8752 Q35499
SYSTEM
Church Slavonic, Basque, Old Church Slavonic
Q33251 Q3110592 Q36206 Q8752 Q35499 Q35726 Q8785 Q25164
(c(Q1048835)|c(Q7275),P37,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
[ANSWERS] are the official languages of min number of political territories and states
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?f ) { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?w ) WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q7275 ) } } GROUP BY ?e } } . { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?v ) WHERE { VALUES ( ?b ) { ( ontology:Q7275 ) ( ontology:Q1048835 ) } . ?n rdf:type ?b } GROUP BY ?o } . FILTER ( ?v = ?f ) }
Church Slavonic written Chinese Lak Basque Old Church Slavonic Etruscan Armenian Nynorsk
Church Slavonic, Basque and Old Church Slavonic are the official languages of min number of political territories and states
Church Slavonic Basque Old Church Slavonic
action argmin
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type state
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?f ) { SELECT DISTINCT ?e ( COUNT ( ?x ) AS ?w ) WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:state ) } } GROUP BY ?e } } . { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?v ) WHERE { VALUES ( ?b ) { ( ontology:state ) ( ontology:political_territorial_entity ) } . ?n rdf:type ?b } GROUP BY ?o } . FILTER ( ?v = ?f ) }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P103
Q34770 Q502895
USER
Which languages are native to more number of people than that language ?
(c(Q502895),P103,c(Q34770))
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?z property:P103 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q34770 }
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?z property:native_language ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:language }
[]
language common name
Comparative|More/Less|Single entity type|Clarification
Q35499
SYSTEM
Did you mean Old Church Slavonic ?
(c(Q502895),P103,c(Q34770))
[ANSWER]
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?z property:P103 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q34770 }
Did you mean Old Church Slavonic ?
Old Church Slavonic
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?z property:native_language ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:language }
[]
Comparative Reasoning (All)
USER
No, I meant Basque. Could you tell me the answer for that?
(c(Q502895),P103,c(Q34770))
Q8752
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
[]
Q1860 Q9056 Q652
SYSTEM
English, Czech, Italian
Q1860 Q9056 Q652 Q1321
(c(Q502895),P103,c(Q34770))
[ANSWERS] are native to more number of people than that language
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?z property:P103 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q34770 }
English Czech Italian Spanish
English, Czech and Italian are native to more number of people than that language
English Czech Italian
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?z property:native_language ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1421571
P2439
Q7397
USER
Do Mantis Bug Tracker have those ones as the language associated with it ?
(Q1421571,P2439,Q1860) (Q1421571,P2439,Q9056) (Q1421571,P2439,Q652)
action is_in
entity prev_answer
action find
entity Q1421571
relation P2439
['Q1421571', 'P2439', 'Q1860'] ['Q1421571', 'P2439', 'Q9056'] ['Q1421571', 'P2439', 'Q652']
ASK WHERE { VALUES ( ?y ) { ( resource:Q1860 ) ( resource:Q9056 ) ( resource:Q652 ) } . resource:Q1421571 property:P2439 ?y }
Mantis Bug Tracker
action is_in
entity prev_answer
action find
entity Mantis Bug Tracker
relation language
['Mantis Bug Tracker', 'language', 'English'] ['Mantis Bug Tracker', 'language', 'Czech'] ['Mantis Bug Tracker', 'language', 'Italian']
ASK WHERE { VALUES ( ?y ) { ( resource:English ) ( resource:Czech ) ( resource:Italian ) } . resource:Mantis_Bug_Tracker property:language ?y }
[]
software
SYSTEM
YES
(Q1421571,P2439,Q1860) (Q1421571,P2439,Q9056) (Q1421571,P2439,Q652)
action is_in
entity prev_answer
action find
entity Q1421571
relation P2439
[ANSWER]
['Q1421571', 'P2439', 'Q1860'] ['Q1421571', 'P2439', 'Q9056'] ['Q1421571', 'P2439', 'Q652']
ASK WHERE { VALUES ( ?y ) { ( resource:Q1860 ) ( resource:Q9056 ) ( resource:Q652 ) } . resource:Q1421571 property:P2439 ?y }
Yes
action is_in
entity prev_answer
action find
entity Mantis Bug Tracker
relation language
['Mantis Bug Tracker', 'language', 'English'] ['Mantis Bug Tracker', 'language', 'Czech'] ['Mantis Bug Tracker', 'language', 'Italian']
ASK WHERE { VALUES ( ?y ) { ( resource:English ) ( resource:Czech ) ( resource:Italian ) } . resource:Mantis_Bug_Tracker property:language ?y }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q830001
P47
Q1048835
USER
How many political territories share border with Alpanseque ?
(c(Q1048835),P47,Q830001)
action count
action filter_type
action find_reverse
entity Q830001
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q830001']
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:P47 resource:Q830001 . ?u rdf:type ontology:Q1048835 }
Alpanseque
action count
action filter_type
action find_reverse
entity Alpanseque
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Alpanseque']
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:shares_border_with resource:Alpanseque . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
Q1655867 Q1046930 Q484115
(c(Q1048835),P47,Q830001)
action count
action filter_type
action find_reverse
entity Q830001
relation P47
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q830001']
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:P47 resource:Q830001 . ?u rdf:type ontology:Q1048835 }
Sienes Rello Baraona
3
action count
action filter_type
action find_reverse
entity Alpanseque
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Alpanseque']
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:shares_border_with resource:Alpanseque . ?u rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q13836
P47
Q1048835
USER
And also tell me about Santa Eulàlia de Riuprimer?
(c(Q1048835),P47,Q13836)
action count
action filter_type
action find_reverse
entity Q13836
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q13836']
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:P47 resource:Q13836 . ?q rdf:type ontology:Q1048835 }
Santa Eulàlia de Riuprimer
action count
action filter_type
action find_reverse
entity Santa Eulàlia de Riuprimer
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Santa Eulàlia de Riuprimer']
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:shares_border_with resource:Santa_Eulàlia_de_Riuprimer . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
4
Q16735 Q13799 Q13818 Q13855
(c(Q1048835),P47,Q13836)
action count
action filter_type
action find_reverse
entity Q13836
relation P47
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q13836']
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:P47 resource:Q13836 . ?q rdf:type ontology:Q1048835 }
Santa Maria d'Oló Montanyola Sant Bartomeu del Grau Vic
4
action count
action filter_type
action find_reverse
entity Santa Eulàlia de Riuprimer
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Santa Eulàlia de Riuprimer']
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:shares_border_with resource:Santa_Eulàlia_de_Riuprimer . ?q rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q188 Q9056
P1412
Q502895
USER
Which people write Czech and German ?
AND((c(Q502895),P1412,Q9056), (c(Q502895),P1412,Q188))
action filter_type
action intersection
action find_reverse
entity Q9056
relation P1412
action find_reverse
entity Q188
relation P1412
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1412', 'Q9056'], [{'concept': 'Q502895'}, 'P1412', 'Q188']]}
SELECT DISTINCT ?m WHERE { ?m property:P1412 resource:Q188 . ?m property:P1412 resource:Q9056 . ?m rdf:type ontology:Q502895 }
German Czech
action filter_type
action intersection
action find_reverse
entity Czech
relation languages spoken, written or signed
action find_reverse
entity German
relation languages spoken, written or signed
type common name
{'AND': [[{'concept': 'common name'}, 'languages spoken, written or signed', 'Czech'], [{'concept': 'common name'}, 'languages spoken, written or signed', 'German']]}
SELECT DISTINCT ?m WHERE { ?m property:languages_spoken,_written_or_signed resource:German . ?m property:languages_spoken,_written_or_signed resource:Czech . ?m rdf:type ontology:common_name }
[]
common name
Q163557 Q1427613 Q1706029 Q872836 Q9159652 Q237501 Q57124 Q215137 Q352030 Q106082
SYSTEM
Some of them are Pavel Kohout, Miloš Kirschner, Josef Wenzig, Pavel Landovský, Arka Bożek, Blanche of Valois, Sigismund, Karel Lamač, Jiří Menzel, Max Mangold
Q112169 Q107319 Q87425 Q853461 Q57124 Q1238167 Q18507791 Q325053 Q872836 Q1354569 Q26742226 Q19707075 Q24290081 Q26160260 Q155669 Q742748 Q1360544 Q26707456 Q1066361 Q130759 Q381720 Q84648 Q1450234 Q1611383 Q576589 Q259723 Q12023866 Q1675522 Q769826 Q352030 Q215137 Q24512347 Q1246276 Q331311 Q331352 Q228989 Q22813708 Q86514 Q129356 Q163557 Q9159652 Q967970 Q99491 Q470233 Q11815924 Q1309835 Q106082 Q237501 Q2074506 Q117763 Q12016933 Q1706029 Q23930815 Q605087 Q3561915 Q283121 Q1427613 Q566258 Q1361480 Q697998 Q1388800
AND((c(Q502895),P1412,Q9056), (c(Q502895),P1412,Q188))
action filter_type
action intersection
action find_reverse
entity Q9056
relation P1412
action find_reverse
entity Q188
relation P1412
type Q502895
[ANSWERS] write Czech and German
{'AND': [[{'concept': 'Q502895'}, 'P1412', 'Q9056'], [{'concept': 'Q502895'}, 'P1412', 'Q188']]}
SELECT DISTINCT ?m WHERE { ?m property:P1412 resource:Q188 . ?m property:P1412 resource:Q9056 . ?m rdf:type ontology:Q502895 }
August Scholtis Ferdinand Kinsky Friedrich Katzer Andrea Lehotská Sigismund Hermann Pokorny Anton Robert Leinweber Anton Gindely Pavel Landovský Ladislav Klíma Sylva Macharová František Smetánka Tomáš Kafka Dragan Prokopiev Charles IV, Holy Roman Emperor Josef Fiala Hugo Salus Rada Biller Juraj Herz Christoph Willibald von Gluck Jan Patočka Karel Klostermann Peter Baláž Hermann Hallwich František Čáp Vojtěch Martínek Jaroslav Kolár Ivan Blatný Martin Frič Jiří Menzel Karel Lamač Alfrun Kliems Elena Lappin Josef Mach Karl Anton Lucie Šafářová Roman Kopřiva Maxim Biller Karl Egon Ebert Pavel Kohout Arka Bożek Václav Vorlíček Alena Wagnerová Marta Jandová Peter Zajac František Černy Max Mangold Blanche of Valois Peter Demetz Giuseppe Caspar Mezzofanti František Bubák Josef Wenzig Hermine von Janda Beda Dudík Josef Hiršal Josef Dobrovský Miloš Kirschner Annemarie Böll Vladimir Karbusicky Franz von Dietrichstein Gustav Machatý
Pavel Kohout, Miloš Kirschner, Josef Wenzig, Pavel Landovský, Arka Bożek, Blanche of Valois, Sigismund, Karel Lamač, Jiří Menzel and Max Mangold write Czech and German
Pavel Kohout Miloš Kirschner Josef Wenzig Pavel Landovský Arka Bożek Blanche of Valois Sigismund Karel Lamač Jiří Menzel Max Mangold
action filter_type
action intersection
action find_reverse
entity Czech
relation languages spoken, written or signed
action find_reverse
entity German
relation languages spoken, written or signed
type common name
{'AND': [[{'concept': 'common name'}, 'languages spoken, written or signed', 'Czech'], [{'concept': 'common name'}, 'languages spoken, written or signed', 'German']]}
SELECT DISTINCT ?m WHERE { ?m property:languages_spoken,_written_or_signed resource:German . ?m property:languages_spoken,_written_or_signed resource:Czech . ?m rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P106
Q151885 Q28640
USER
How many concepts and professions have that person as his/her as a career ?
(Q872836,P106,c(Q151885)) (Q872836,P106,c(Q28640)) (Q163557,P106,c(Q151885)) (Q163557,P106,c(Q28640)) (Q1427613,P106,c(Q151885)) (Q1427613,P106,c(Q28640)) (Q1706029,P106,c(Q151885)) (Q1706029,P106,c(Q28640)) (Q872836,P106,c(Q151885)) (Q872836,P106,c(Q28640)) (Q9159652,P106,c(Q151885)) (Q9159652,P106,c(Q28640)) (Q237501,P106,c(Q151885)) (Q237501,P106,c(Q28640)) (Q57124,P106,c(Q151885)) (Q57124,P106,c(Q28640)) (Q215137,P106,c(Q151885)) (Q215137,P106,c(Q28640)) (Q352030,P106,c(Q151885)) (Q352030,P106,c(Q28640)) (Q106082,P106,c(Q151885)) (Q106082,P106,c(Q28640))
['Q872836', 'P106', {'concept': 'Q151885'}] ['Q872836', 'P106', {'concept': 'Q28640'}] ['Q163557', 'P106', {'concept': 'Q151885'}] ['Q163557', 'P106', {'concept': 'Q28640'}] ['Q1427613', 'P106', {'concept': 'Q151885'}] ['Q1427613', 'P106', {'concept': 'Q28640'}] ['Q1706029', 'P106', {'concept': 'Q151885'}] ['Q1706029', 'P106', {'concept': 'Q28640'}] ['Q872836', 'P106', {'concept': 'Q151885'}] ['Q872836', 'P106', {'concept': 'Q28640'}] ['Q9159652', 'P106', {'concept': 'Q151885'}] ['Q9159652', 'P106', {'concept': 'Q28640'}] ['Q237501', 'P106', {'concept': 'Q151885'}] ['Q237501', 'P106', {'concept': 'Q28640'}] ['Q57124', 'P106', {'concept': 'Q151885'}] ['Q57124', 'P106', {'concept': 'Q28640'}] ['Q215137', 'P106', {'concept': 'Q151885'}] ['Q215137', 'P106', {'concept': 'Q28640'}] ['Q352030', 'P106', {'concept': 'Q151885'}] ['Q352030', 'P106', {'concept': 'Q28640'}] ['Q106082', 'P106', {'concept': 'Q151885'}] ['Q106082', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q872836 property:Q528892 ?z } UNION { resource:Q872836 property:Q528892 ?y } UNION { resource:Q2900283 property:Q528892 ?z } UNION { resource:Q2900283 property:Q528892 ?y } UNION { resource:Q1427613 property:Q528892 ?z } UNION { resource:Q1427613 property:Q528892 ?y } UNION { resource:Q1706029 property:Q528892 ?z } UNION { resource:Q1706029 property:Q528892 ?y } UNION { resource:Q872836 property:Q528892 ?z } UNION { resource:Q872836 property:Q528892 ?y } UNION { resource:Q9159652 property:Q528892 ?z } UNION { resource:Q9159652 property:Q528892 ?y } UNION { resource:Q237501 property:Q528892 ?z } UNION { resource:Q237501 property:Q528892 ?y } UNION { resource:Q10667549 property:Q528892 ?z } UNION { resource:Q10667549 property:Q528892 ?y } UNION { resource:Q215137 property:Q528892 ?z } UNION { resource:Q215137 property:Q528892 ?y } UNION { resource:Q352030 property:Q528892 ?z } UNION { resource:Q352030 property:Q528892 ?y } UNION { resource:Q106082 property:Q528892 ?z } UNION { resource:Q106082 property:Q528892 ?y } } . ?z rdf:type ontology:Q151885 . ?y rdf:type ontology:Q28640 }
['Pavel Landovský', 'occupation', {'concept': 'concept'}] ['Pavel Landovský', 'occupation', {'concept': 'profession'}] ['Pavel Kohout', 'occupation', {'concept': 'concept'}] ['Pavel Kohout', 'occupation', {'concept': 'profession'}] ['Miloš Kirschner', 'occupation', {'concept': 'concept'}] ['Miloš Kirschner', 'occupation', {'concept': 'profession'}] ['Josef Wenzig', 'occupation', {'concept': 'concept'}] ['Josef Wenzig', 'occupation', {'concept': 'profession'}] ['Pavel Landovský', 'occupation', {'concept': 'concept'}] ['Pavel Landovský', 'occupation', {'concept': 'profession'}] ['Arka Bożek', 'occupation', {'concept': 'concept'}] ['Arka Bożek', 'occupation', {'concept': 'profession'}] ['Blanche of Valois', 'occupation', {'concept': 'concept'}] ['Blanche of Valois', 'occupation', {'concept': 'profession'}] ['Sigismund', 'occupation', {'concept': 'concept'}] ['Sigismund', 'occupation', {'concept': 'profession'}] ['Karel Lamač', 'occupation', {'concept': 'concept'}] ['Karel Lamač', 'occupation', {'concept': 'profession'}] ['Jiří Menzel', 'occupation', {'concept': 'concept'}] ['Jiří Menzel', 'occupation', {'concept': 'profession'}] ['Max Mangold', 'occupation', {'concept': 'concept'}] ['Max Mangold', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Pavel_Landovský property:occupation ?z } UNION { resource:Pavel_Landovský property:occupation ?y } UNION { resource:Pavel_Kohout property:occupation ?z } UNION { resource:Pavel_Kohout property:occupation ?y } UNION { resource:Miloš_Kirschner property:occupation ?z } UNION { resource:Miloš_Kirschner property:occupation ?y } UNION { resource:Josef_Wenzig property:occupation ?z } UNION { resource:Josef_Wenzig property:occupation ?y } UNION { resource:Pavel_Landovský property:occupation ?z } UNION { resource:Pavel_Landovský property:occupation ?y } UNION { resource:Arka_Bożek property:occupation ?z } UNION { resource:Arka_Bożek property:occupation ?y } UNION { resource:Blanche_of_Valois property:occupation ?z } UNION { resource:Blanche_of_Valois property:occupation ?y } UNION { resource:Sigismund property:occupation ?z } UNION { resource:Sigismund property:occupation ?y } UNION { resource:Karel_Lamač property:occupation ?z } UNION { resource:Karel_Lamač property:occupation ?y } UNION { resource:Jiří_Menzel property:occupation ?z } UNION { resource:Jiří_Menzel property:occupation ?y } UNION { resource:Max_Mangold property:occupation ?z } UNION { resource:Max_Mangold property:occupation ?y } } . ?z rdf:type ontology:concept . ?y rdf:type ontology:profession }
[]
concept profession
Quantitative|Count|Mult. entity type|Clarification
Q106082
SYSTEM
Did you mean Max Mangold ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q872836 property:Q528892 ?z } UNION { resource:Q872836 property:Q528892 ?y } UNION { resource:Q2900283 property:Q528892 ?z } UNION { resource:Q2900283 property:Q528892 ?y } UNION { resource:Q1427613 property:Q528892 ?z } UNION { resource:Q1427613 property:Q528892 ?y } UNION { resource:Q1706029 property:Q528892 ?z } UNION { resource:Q1706029 property:Q528892 ?y } UNION { resource:Q872836 property:Q528892 ?z } UNION { resource:Q872836 property:Q528892 ?y } UNION { resource:Q9159652 property:Q528892 ?z } UNION { resource:Q9159652 property:Q528892 ?y } UNION { resource:Q237501 property:Q528892 ?z } UNION { resource:Q237501 property:Q528892 ?y } UNION { resource:Q10667549 property:Q528892 ?z } UNION { resource:Q10667549 property:Q528892 ?y } UNION { resource:Q215137 property:Q528892 ?z } UNION { resource:Q215137 property:Q528892 ?y } UNION { resource:Q352030 property:Q528892 ?z } UNION { resource:Q352030 property:Q528892 ?y } UNION { resource:Q106082 property:Q528892 ?z } UNION { resource:Q106082 property:Q528892 ?y } } . ?z rdf:type ontology:Q151885 . ?y rdf:type ontology:Q28640 }
Did you mean Max Mangold ?
Max Mangold
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Pavel_Landovský property:occupation ?z } UNION { resource:Pavel_Landovský property:occupation ?y } UNION { resource:Pavel_Kohout property:occupation ?z } UNION { resource:Pavel_Kohout property:occupation ?y } UNION { resource:Miloš_Kirschner property:occupation ?z } UNION { resource:Miloš_Kirschner property:occupation ?y } UNION { resource:Josef_Wenzig property:occupation ?z } UNION { resource:Josef_Wenzig property:occupation ?y } UNION { resource:Pavel_Landovský property:occupation ?z } UNION { resource:Pavel_Landovský property:occupation ?y } UNION { resource:Arka_Bożek property:occupation ?z } UNION { resource:Arka_Bożek property:occupation ?y } UNION { resource:Blanche_of_Valois property:occupation ?z } UNION { resource:Blanche_of_Valois property:occupation ?y } UNION { resource:Sigismund property:occupation ?z } UNION { resource:Sigismund property:occupation ?y } UNION { resource:Karel_Lamač property:occupation ?z } UNION { resource:Karel_Lamač property:occupation ?y } UNION { resource:Jiří_Menzel property:occupation ?z } UNION { resource:Jiří_Menzel property:occupation ?y } UNION { resource:Max_Mangold property:occupation ?z } UNION { resource:Max_Mangold property:occupation ?y } } . ?z rdf:type ontology:concept . ?y rdf:type ontology:profession }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Pavel Landovský. Could you tell me the answer for that?
(Q872836,P106,c(Q151885)) (Q872836,P106,c(Q28640)) (Q163557,P106,c(Q151885)) (Q163557,P106,c(Q28640)) (Q1427613,P106,c(Q151885)) (Q1427613,P106,c(Q28640)) (Q1706029,P106,c(Q151885)) (Q1706029,P106,c(Q28640)) (Q872836,P106,c(Q151885)) (Q872836,P106,c(Q28640)) (Q9159652,P106,c(Q151885)) (Q9159652,P106,c(Q28640)) (Q237501,P106,c(Q151885)) (Q237501,P106,c(Q28640)) (Q57124,P106,c(Q151885)) (Q57124,P106,c(Q28640)) (Q215137,P106,c(Q151885)) (Q215137,P106,c(Q28640)) (Q352030,P106,c(Q151885)) (Q352030,P106,c(Q28640)) (Q106082,P106,c(Q151885)) (Q106082,P106,c(Q28640))
Q872836
['Q872836', 'P106', {'concept': 'Q151885'}] ['Q872836', 'P106', {'concept': 'Q28640'}] ['Q163557', 'P106', {'concept': 'Q151885'}] ['Q163557', 'P106', {'concept': 'Q28640'}] ['Q1427613', 'P106', {'concept': 'Q151885'}] ['Q1427613', 'P106', {'concept': 'Q28640'}] ['Q1706029', 'P106', {'concept': 'Q151885'}] ['Q1706029', 'P106', {'concept': 'Q28640'}] ['Q872836', 'P106', {'concept': 'Q151885'}] ['Q872836', 'P106', {'concept': 'Q28640'}] ['Q9159652', 'P106', {'concept': 'Q151885'}] ['Q9159652', 'P106', {'concept': 'Q28640'}] ['Q237501', 'P106', {'concept': 'Q151885'}] ['Q237501', 'P106', {'concept': 'Q28640'}] ['Q57124', 'P106', {'concept': 'Q151885'}] ['Q57124', 'P106', {'concept': 'Q28640'}] ['Q215137', 'P106', {'concept': 'Q151885'}] ['Q215137', 'P106', {'concept': 'Q28640'}] ['Q352030', 'P106', {'concept': 'Q151885'}] ['Q352030', 'P106', {'concept': 'Q28640'}] ['Q106082', 'P106', {'concept': 'Q151885'}] ['Q106082', 'P106', {'concept': 'Q28640'}]
['Pavel Landovský', 'occupation', {'concept': 'concept'}] ['Pavel Landovský', 'occupation', {'concept': 'profession'}] ['Pavel Kohout', 'occupation', {'concept': 'concept'}] ['Pavel Kohout', 'occupation', {'concept': 'profession'}] ['Miloš Kirschner', 'occupation', {'concept': 'concept'}] ['Miloš Kirschner', 'occupation', {'concept': 'profession'}] ['Josef Wenzig', 'occupation', {'concept': 'concept'}] ['Josef Wenzig', 'occupation', {'concept': 'profession'}] ['Pavel Landovský', 'occupation', {'concept': 'concept'}] ['Pavel Landovský', 'occupation', {'concept': 'profession'}] ['Arka Bożek', 'occupation', {'concept': 'concept'}] ['Arka Bożek', 'occupation', {'concept': 'profession'}] ['Blanche of Valois', 'occupation', {'concept': 'concept'}] ['Blanche of Valois', 'occupation', {'concept': 'profession'}] ['Sigismund', 'occupation', {'concept': 'concept'}] ['Sigismund', 'occupation', {'concept': 'profession'}] ['Karel Lamač', 'occupation', {'concept': 'concept'}] ['Karel Lamač', 'occupation', {'concept': 'profession'}] ['Jiří Menzel', 'occupation', {'concept': 'concept'}] ['Jiří Menzel', 'occupation', {'concept': 'profession'}] ['Max Mangold', 'occupation', {'concept': 'concept'}] ['Max Mangold', 'occupation', {'concept': 'profession'}]
[]
SYSTEM
1 concepts and 1 professions
Q10800557 Q214917
(Q872836,P106,c(Q151885)) (Q872836,P106,c(Q28640)) (Q163557,P106,c(Q151885)) (Q163557,P106,c(Q28640)) (Q1427613,P106,c(Q151885)) (Q1427613,P106,c(Q28640)) (Q1706029,P106,c(Q151885)) (Q1706029,P106,c(Q28640)) (Q872836,P106,c(Q151885)) (Q872836,P106,c(Q28640)) (Q9159652,P106,c(Q151885)) (Q9159652,P106,c(Q28640)) (Q237501,P106,c(Q151885)) (Q237501,P106,c(Q28640)) (Q57124,P106,c(Q151885)) (Q57124,P106,c(Q28640)) (Q215137,P106,c(Q151885)) (Q215137,P106,c(Q28640)) (Q352030,P106,c(Q151885)) (Q352030,P106,c(Q28640)) (Q106082,P106,c(Q151885)) (Q106082,P106,c(Q28640))
[ANSWER]
['Q872836', 'P106', {'concept': 'Q151885'}] ['Q872836', 'P106', {'concept': 'Q28640'}] ['Q163557', 'P106', {'concept': 'Q151885'}] ['Q163557', 'P106', {'concept': 'Q28640'}] ['Q1427613', 'P106', {'concept': 'Q151885'}] ['Q1427613', 'P106', {'concept': 'Q28640'}] ['Q1706029', 'P106', {'concept': 'Q151885'}] ['Q1706029', 'P106', {'concept': 'Q28640'}] ['Q872836', 'P106', {'concept': 'Q151885'}] ['Q872836', 'P106', {'concept': 'Q28640'}] ['Q9159652', 'P106', {'concept': 'Q151885'}] ['Q9159652', 'P106', {'concept': 'Q28640'}] ['Q237501', 'P106', {'concept': 'Q151885'}] ['Q237501', 'P106', {'concept': 'Q28640'}] ['Q57124', 'P106', {'concept': 'Q151885'}] ['Q57124', 'P106', {'concept': 'Q28640'}] ['Q215137', 'P106', {'concept': 'Q151885'}] ['Q215137', 'P106', {'concept': 'Q28640'}] ['Q352030', 'P106', {'concept': 'Q151885'}] ['Q352030', 'P106', {'concept': 'Q28640'}] ['Q106082', 'P106', {'concept': 'Q151885'}] ['Q106082', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q872836 property:Q528892 ?z } UNION { resource:Q872836 property:Q528892 ?y } UNION { resource:Q2900283 property:Q528892 ?z } UNION { resource:Q2900283 property:Q528892 ?y } UNION { resource:Q1427613 property:Q528892 ?z } UNION { resource:Q1427613 property:Q528892 ?y } UNION { resource:Q1706029 property:Q528892 ?z } UNION { resource:Q1706029 property:Q528892 ?y } UNION { resource:Q872836 property:Q528892 ?z } UNION { resource:Q872836 property:Q528892 ?y } UNION { resource:Q9159652 property:Q528892 ?z } UNION { resource:Q9159652 property:Q528892 ?y } UNION { resource:Q237501 property:Q528892 ?z } UNION { resource:Q237501 property:Q528892 ?y } UNION { resource:Q10667549 property:Q528892 ?z } UNION { resource:Q10667549 property:Q528892 ?y } UNION { resource:Q215137 property:Q528892 ?z } UNION { resource:Q215137 property:Q528892 ?y } UNION { resource:Q352030 property:Q528892 ?z } UNION { resource:Q352030 property:Q528892 ?y } UNION { resource:Q106082 property:Q528892 ?z } UNION { resource:Q106082 property:Q528892 ?y } } . ?z rdf:type ontology:Q151885 . ?y rdf:type ontology:Q28640 }
film actor playwright
1 concepts and 1 professions
['Pavel Landovský', 'occupation', {'concept': 'concept'}] ['Pavel Landovský', 'occupation', {'concept': 'profession'}] ['Pavel Kohout', 'occupation', {'concept': 'concept'}] ['Pavel Kohout', 'occupation', {'concept': 'profession'}] ['Miloš Kirschner', 'occupation', {'concept': 'concept'}] ['Miloš Kirschner', 'occupation', {'concept': 'profession'}] ['Josef Wenzig', 'occupation', {'concept': 'concept'}] ['Josef Wenzig', 'occupation', {'concept': 'profession'}] ['Pavel Landovský', 'occupation', {'concept': 'concept'}] ['Pavel Landovský', 'occupation', {'concept': 'profession'}] ['Arka Bożek', 'occupation', {'concept': 'concept'}] ['Arka Bożek', 'occupation', {'concept': 'profession'}] ['Blanche of Valois', 'occupation', {'concept': 'concept'}] ['Blanche of Valois', 'occupation', {'concept': 'profession'}] ['Sigismund', 'occupation', {'concept': 'concept'}] ['Sigismund', 'occupation', {'concept': 'profession'}] ['Karel Lamač', 'occupation', {'concept': 'concept'}] ['Karel Lamač', 'occupation', {'concept': 'profession'}] ['Jiří Menzel', 'occupation', {'concept': 'concept'}] ['Jiří Menzel', 'occupation', {'concept': 'profession'}] ['Max Mangold', 'occupation', {'concept': 'concept'}] ['Max Mangold', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Pavel_Landovský property:occupation ?z } UNION { resource:Pavel_Landovský property:occupation ?y } UNION { resource:Pavel_Kohout property:occupation ?z } UNION { resource:Pavel_Kohout property:occupation ?y } UNION { resource:Miloš_Kirschner property:occupation ?z } UNION { resource:Miloš_Kirschner property:occupation ?y } UNION { resource:Josef_Wenzig property:occupation ?z } UNION { resource:Josef_Wenzig property:occupation ?y } UNION { resource:Pavel_Landovský property:occupation ?z } UNION { resource:Pavel_Landovský property:occupation ?y } UNION { resource:Arka_Bożek property:occupation ?z } UNION { resource:Arka_Bożek property:occupation ?y } UNION { resource:Blanche_of_Valois property:occupation ?z } UNION { resource:Blanche_of_Valois property:occupation ?y } UNION { resource:Sigismund property:occupation ?z } UNION { resource:Sigismund property:occupation ?y } UNION { resource:Karel_Lamač property:occupation ?z } UNION { resource:Karel_Lamač property:occupation ?y } UNION { resource:Jiří_Menzel property:occupation ?z } UNION { resource:Jiří_Menzel property:occupation ?y } UNION { resource:Max_Mangold property:occupation ?z } UNION { resource:Max_Mangold property:occupation ?y } } . ?z rdf:type ontology:concept . ?y rdf:type ontology:profession }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q57124
P40
Q502895
USER
Which people are children of Sigismund ?
(Q57124,P40,c(Q502895))
action filter_type
action find
entity Q57124
relation P40
type Q502895
['Q57124', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q57124 property:P40 ?t . ?t rdf:type ontology:Q502895 }
Sigismund
action filter_type
action find
entity Sigismund
relation child
type common name
['Sigismund', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Sigismund property:child ?t . ?t rdf:type ontology:common_name }
[]
common name
Q1160007 Q167401
SYSTEM
N. of Luxemburg, Prince of Hungary, Elizabeth of Luxembourg
Q1160007 Q167401
(Q57124,P40,c(Q502895))
action filter_type
action find
entity Q57124
relation P40
type Q502895
[ANSWERS] are children of Sigismund
['Q57124', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q57124 property:P40 ?t . ?t rdf:type ontology:Q502895 }
N. of Luxemburg, Prince of Hungary Elizabeth of Luxembourg
N. of Luxemburg, Prince of Hungary and Elizabeth of Luxembourg are children of Sigismund
N. of Luxemburg, Prince of Hungary Elizabeth of Luxembourg
action filter_type
action find
entity Sigismund
relation child
type common name
['Sigismund', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Sigismund property:child ?t . ?t rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1160007
P9
Q502895
USER
Which person is the sister of that one ?
(Q1160007,P9,c(Q502895))
action filter_type
action find
entity Q1160007
relation P9
type Q502895
['Q1160007', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1160007 property:P9 ?m . ?m rdf:type ontology:Q502895 }
N. of Luxemburg, Prince of Hungary
action filter_type
action find
entity N. of Luxemburg, Prince of Hungary
relation sister
type common name
['N. of Luxemburg, Prince of Hungary', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:N._of_Luxemburg,_Prince_of_Hungary property:sister ?m . ?m rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q167401
SYSTEM
Did you mean Elizabeth of Luxembourg ?
Q1160007 Q167401
(Q1160007,P9,c(Q502895)) (Q167401,P9,c(Q502895))
[ANSWER]
['Q1160007', 'P9', {'concept': 'Q502895'}] ['Q167401', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1160007 property:P9 ?m . ?m rdf:type ontology:Q502895 }
N. of Luxemburg, Prince of Hungary Elizabeth of Luxembourg
Did you mean Elizabeth of Luxembourg ?
Elizabeth of Luxembourg
['N. of Luxemburg, Prince of Hungary', 'sister', {'concept': 'common name'}] ['Elizabeth of Luxembourg', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:N._of_Luxemburg,_Prince_of_Hungary property:sister ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant N. of Luxemburg, Prince of Hungary. Could you tell me the answer for that?
(Q1160007,P9,c(Q502895))
Q1160007
['Q1160007', 'P9', {'concept': 'Q502895'}]
['N. of Luxemburg, Prince of Hungary', 'sister', {'concept': 'common name'}]
[]
Q167401
SYSTEM
Elizabeth of Luxembourg
Q167401
(Q1160007,P9,c(Q502895))
action filter_type
action find
entity Q1160007
relation P9
type Q502895
[ANSWER] is the sister of that one
['Q1160007', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1160007 property:P9 ?m . ?m rdf:type ontology:Q502895 }
Elizabeth of Luxembourg
Elizabeth of Luxembourg is the sister of that one
Elizabeth of Luxembourg
action filter_type
action find
entity N. of Luxemburg, Prince of Hungary
relation sister
type common name
['N. of Luxemburg, Prince of Hungary', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:N._of_Luxemburg,_Prince_of_Hungary property:sister ?m . ?m rdf:type ontology:common_name }
[]