Simple Question (Direct)
Simple Question
Q577396
P102
Q7278
USER
Which political party is Manuel Pérez Álvarez a member of ?
(Q577396,P102,c(Q7278))
action filter_type
action find
entity Q577396
relation P102
type Q7278
['Q577396', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?q WHERE { resource:Q577396 property:P102 ?q . ?q rdf:type ontology:Q7278 }
Manuel Pérez Álvarez
action filter_type
action find
entity Manuel Pérez Álvarez
relation member of political party
type political party
['Manuel Pérez Álvarez', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?q WHERE { resource:Manuel_Pérez_Álvarez property:member_of_political_party ?q . ?q rdf:type ontology:political_party }
[]
political party
Q185088
SYSTEM
People's Party
Q185088
(Q577396,P102,c(Q7278))
action filter_type
action find
entity Q577396
relation P102
type Q7278
Party [ANSWER] is Manuel Pérez Álvarez a member of
['Q577396', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?q WHERE { resource:Q577396 property:P102 ?q . ?q rdf:type ontology:Q7278 }
People's Party
Party People's Party is Manuel Pérez Álvarez a member of
People's Party
action filter_type
action find
entity Manuel Pérez Álvarez
relation member of political party
type political party
['Manuel Pérez Álvarez', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?q WHERE { resource:Manuel_Pérez_Álvarez property:member_of_political_party ?q . ?q rdf:type ontology:political_party }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q577396
P1412
Q34770
USER
Which language is spoken by Manuel Pérez Álvarez ?
(Q577396,P1412,c(Q34770))
action filter_type
action find
entity Q577396
relation P1412
type Q34770
['Q577396', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q577396 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
Manuel Pérez Álvarez
action filter_type
action find
entity Manuel Pérez Álvarez
relation languages spoken, written or signed
type language
['Manuel Pérez Álvarez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Manuel_Pérez_Álvarez property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q577396,P1412,c(Q34770))
action filter_type
action find
entity Q577396
relation P1412
type Q34770
And [ANSWER] is spoken by Manuel Pérez Álvarez
['Q577396', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q577396 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
Spanish
And Spanish is spoken by Manuel Pérez Álvarez
Spanish
action filter_type
action find
entity Manuel Pérez Álvarez
relation languages spoken, written or signed
type language
['Manuel Pérez Álvarez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Manuel_Pérez_Álvarez property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q9292296
Q34770
USER
And also tell me about Hilton Young, 1st Baron Kennet?
(Q9292296,P1412,c(Q34770))
action filter_type
action find
entity Q9292296
relation P1412
type Q34770
['Q9292296', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q34770 . resource:Q9292296 property:P1412 ?w }
Hilton Young, 1st Baron Kennet
action filter_type
action find
entity Hilton Young, 1st Baron Kennet
relation languages spoken, written or signed
type language
['Hilton Young, 1st Baron Kennet', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:language . resource:Hilton_Young,_1st_Baron_Kennet property:languages_spoken,_written_or_signed ?w }
[]
language
Q1860
SYSTEM
English
Q1860
(Q9292296,P1412,c(Q34770))
action filter_type
action find
entity Q9292296
relation P1412
type Q34770
[ANSWER]
['Q9292296', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q34770 . resource:Q9292296 property:P1412 ?w }
English
English
action filter_type
action find
entity Hilton Young, 1st Baron Kennet
relation languages spoken, written or signed
type language
['Hilton Young, 1st Baron Kennet', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:language . resource:Hilton_Young,_1st_Baron_Kennet property:languages_spoken,_written_or_signed ?w }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q35499
P407
Q34770 Q1002697 Q234460
USER
Which languages are the languages of work for around the same number of periodical literatures or texts as Old Church Slavonic ?
(c(Q1002697)|c(Q234460),P407,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q1002697
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q35499
relation P407
type Q1002697
type Q234460
[[{'concept': 'Q1002697'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) ?r WHERE { { ?g property:P407 ?r . ?r rdf:type ontology:Q34770 . ?g rdf:type ontology:Q1002697 } UNION { ?r rdf:type ontology:Q34770 . ?g rdf:type ontology:Q234460 . ?g property:P407 ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:P407 resource:Q35499 . { VALUES ( ?p ) { ( ontology:Q1002697 ) ( ontology:Q234460 ) } . ?h rdf:type ?p } } } . FILTER ( ?a = ?k ) }
Old Church Slavonic
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type periodical literature
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action count
action filter_multi_types
action find_reverse
entity Old Church Slavonic
relation language of work or name
type periodical literature
type text
[[{'concept': 'periodical literature'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) ?r WHERE { { ?g property:language_of_work_or_name ?r . ?r rdf:type ontology:language . ?g rdf:type ontology:periodical_literature } UNION { ?r rdf:type ontology:language . ?g rdf:type ontology:text . ?g property:language_of_work_or_name ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:language_of_work_or_name resource:Old_Church_Slavonic . { VALUES ( ?p ) { ( ontology:periodical_literature ) ( ontology:text ) } . ?h rdf:type ?p } } } . FILTER ( ?a = ?k ) }
[]
language periodical literature text
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q1002697)|c(Q234460),P407,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q1002697
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q35499
relation P407
type Q1002697
type Q234460
[ANSWERS] are the languages of work for around the same number of periodical literatures or texts as Old Church Slavonic
[[{'concept': 'Q1002697'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) ?r WHERE { { ?g property:P407 ?r . ?r rdf:type ontology:Q34770 . ?g rdf:type ontology:Q1002697 } UNION { ?r rdf:type ontology:Q34770 . ?g rdf:type ontology:Q234460 . ?g property:P407 ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:P407 resource:Q35499 . { VALUES ( ?p ) { ( ontology:Q1002697 ) ( ontology:Q234460 ) } . ?h rdf:type ?p } } } . FILTER ( ?a = ?k ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are the languages of work for around the same number of periodical literatures or texts as Old Church Slavonic
Old Egyptian Old Church Slavonic Etruscan
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type periodical literature
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action count
action filter_multi_types
action find_reverse
entity Old Church Slavonic
relation language of work or name
type periodical literature
type text
[[{'concept': 'periodical literature'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) ?r WHERE { { ?g property:language_of_work_or_name ?r . ?r rdf:type ontology:language . ?g rdf:type ontology:periodical_literature } UNION { ?r rdf:type ontology:language . ?g rdf:type ontology:text . ?g property:language_of_work_or_name ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h property:language_of_work_or_name resource:Old_Church_Slavonic . { VALUES ( ?p ) { ( ontology:periodical_literature ) ( ontology:text ) } . ?h rdf:type ?p } } } . FILTER ( ?a = ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q37041
P407
Q34770 Q1002697 Q234460
USER
And also tell me about classical Chinese?
(c(Q1002697)|c(Q234460),P407,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q1002697
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q37041
relation P407
type Q1002697
type Q234460
[[{'concept': 'Q1002697'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) ?r WHERE { { ?b property:P407 ?r . ?r rdf:type ontology:Q34770 . ?b rdf:type ontology:Q234460 } UNION { ?b rdf:type ontology:Q1002697 . ?r rdf:type ontology:Q34770 . ?b property:P407 ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:P407 resource:Q37041 . { { ?u rdf:type ontology:Q234460 } UNION { ?u rdf:type ontology:Q1002697 } } } } . FILTER ( ?a = ?l ) }
classical Chinese
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type periodical literature
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action count
action filter_multi_types
action find_reverse
entity classical Chinese
relation language of work or name
type periodical literature
type text
[[{'concept': 'periodical literature'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) ?r WHERE { { ?b property:language_of_work_or_name ?r . ?r rdf:type ontology:language . ?b rdf:type ontology:text } UNION { ?b rdf:type ontology:periodical_literature . ?r rdf:type ontology:language . ?b property:language_of_work_or_name ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:language_of_work_or_name resource:classical_Chinese . { { ?u rdf:type ontology:text } UNION { ?u rdf:type ontology:periodical_literature } } } } . FILTER ( ?a = ?l ) }
[]
language periodical literature text
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q1002697)|c(Q234460),P407,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q1002697
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q37041
relation P407
type Q1002697
type Q234460
[ANSWERS]
[[{'concept': 'Q1002697'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) ?r WHERE { { ?b property:P407 ?r . ?r rdf:type ontology:Q34770 . ?b rdf:type ontology:Q234460 } UNION { ?b rdf:type ontology:Q1002697 . ?r rdf:type ontology:Q34770 . ?b property:P407 ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:P407 resource:Q37041 . { { ?u rdf:type ontology:Q234460 } UNION { ?u rdf:type ontology:Q1002697 } } } } . FILTER ( ?a = ?l ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian Old Church Slavonic Etruscan
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type periodical literature
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action count
action filter_multi_types
action find_reverse
entity classical Chinese
relation language of work or name
type periodical literature
type text
[[{'concept': 'periodical literature'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) ?r WHERE { { ?b property:language_of_work_or_name ?r . ?r rdf:type ontology:language . ?b rdf:type ontology:text } UNION { ?b rdf:type ontology:periodical_literature . ?r rdf:type ontology:language . ?b property:language_of_work_or_name ?r } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:language_of_work_or_name resource:classical_Chinese . { { ?u rdf:type ontology:text } UNION { ?u rdf:type ontology:periodical_literature } } } } . FILTER ( ?a = ?l ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q35499
P364
Q571
USER
What were originally created in that one language ?
(c(Q571),P364,Q35499)
action filter_type
action find_reverse
entity Q35499
relation P364
type Q571
[{'concept': 'Q571'}, 'P364', 'Q35499']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q571 . ?z property:P364 resource:Q35499 }
Old Church Slavonic
action filter_type
action find_reverse
entity Old Church Slavonic
relation original language of work
type book
[{'concept': 'book'}, 'original language of work', 'Old Church Slavonic']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:book . ?z property:original_language_of_work resource:Old_Church_Slavonic }
[]
book
Clarification for simple ques.
Q35499
SYSTEM
Did you mean Old Church Slavonic ?
Q447117 Q35499 Q35726
(c(Q571),P364,Q447117) (c(Q571),P364,Q35499) (c(Q571),P364,Q35726)
[ANSWER]
[{'concept': 'Q571'}, 'P364', 'Q447117'] [{'concept': 'Q571'}, 'P364', 'Q35499'] [{'concept': 'Q571'}, 'P364', 'Q35726']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q571 . ?z property:P364 resource:Q35499 }
Old Egyptian Old Church Slavonic Etruscan
Did you mean Old Church Slavonic ?
Old Church Slavonic
[{'concept': 'book'}, 'original language of work', 'Old Egyptian'] [{'concept': 'book'}, 'original language of work', 'Old Church Slavonic'] [{'concept': 'book'}, 'original language of work', 'Etruscan']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:book . ?z property:original_language_of_work resource:Old_Church_Slavonic }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q571),P364,Q35499)
[{'concept': 'Q571'}, 'P364', 'Q35499']
[{'concept': 'book'}, 'original language of work', 'Old Church Slavonic']
[]
Q22953730 Q1968471
SYSTEM
Psalter, Codex Marianus
Q22953730 Q1968471
(c(Q571),P364,Q35499)
action filter_type
action find_reverse
entity Q35499
relation P364
type Q571
[ANSWERS] were originally created in that one language
[{'concept': 'Q571'}, 'P364', 'Q35499']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q571 . ?z property:P364 resource:Q35499 }
Psalter Codex Marianus
Psalter and Codex Marianus were originally created in that one language
Psalter Codex Marianus
action filter_type
action find_reverse
entity Old Church Slavonic
relation original language of work
type book
[{'concept': 'book'}, 'original language of work', 'Old Church Slavonic']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:book . ?z property:original_language_of_work resource:Old_Church_Slavonic }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1085107 Q9292296
P937 P20
Q56061
USER
Which administrative territories did Hilton Young, 1st Baron Kennet work or did Christoph Hawich die ?
OR((Q9292296,P937,c(Q56061)), (Q1085107,P20,c(Q56061)))
action filter_type
action union
action find
entity Q9292296
relation P937
action find
entity Q1085107
relation P20
type Q56061
{'OR': [['Q9292296', 'P937', {'concept': 'Q56061'}], ['Q1085107', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q9292296 property:P937 ?h } UNION { resource:Q1085107 property:P20 ?h } } . ?h rdf:type ontology:Q56061 }
Christoph Hawich Hilton Young, 1st Baron Kennet
action filter_type
action union
action find
entity Hilton Young, 1st Baron Kennet
relation work location
action find
entity Christoph Hawich
relation place of death
type administrative territorial entity
{'OR': [['Hilton Young, 1st Baron Kennet', 'work location', {'concept': 'administrative territorial entity'}], ['Christoph Hawich', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Hilton_Young,_1st_Baron_Kennet property:work_location ?h } UNION { resource:Christoph_Hawich property:place_of_death ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3138 Q84
SYSTEM
Trier, London
Q3138 Q84
OR((Q9292296,P937,c(Q56061)), (Q1085107,P20,c(Q56061)))
action filter_type
action union
action find
entity Q9292296
relation P937
action find
entity Q1085107
relation P20
type Q56061
Hilton Young , 1st Baron Kennet worked in [ANSWERS]
{'OR': [['Q9292296', 'P937', {'concept': 'Q56061'}], ['Q1085107', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q9292296 property:P937 ?h } UNION { resource:Q1085107 property:P20 ?h } } . ?h rdf:type ontology:Q56061 }
Trier London
Hilton Young , 1st Baron Kennet worked in Trier and London
Trier London
action filter_type
action union
action find
entity Hilton Young, 1st Baron Kennet
relation work location
action find
entity Christoph Hawich
relation place of death
type administrative territorial entity
{'OR': [['Hilton Young, 1st Baron Kennet', 'work location', {'concept': 'administrative territorial entity'}], ['Christoph Hawich', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Hilton_Young,_1st_Baron_Kennet property:work_location ?h } UNION { resource:Christoph_Hawich property:place_of_death ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P559
Q56061 Q34442 Q728937
USER
Which administrative territories are the endpoints for max number of roads and railroad lines ?
(c(Q34442)|c(Q728937),P559,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
[[{'concept': 'Q34442'}, {'concept': 'Q728937'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?w WHERE { ?t rdf:type ?j . VALUES ( ?j ) { ( ontology:Q34442 ) ( ontology:Q728937 ) } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?q WHERE { { ?f property:P559 ?q . ?q rdf:type ontology:Q56061 . ?f rdf:type ontology:Q34442 } UNION { ?f rdf:type ontology:Q728937 . ?q rdf:type ontology:Q56061 . ?f property:P559 ?q } } GROUP BY ?q } . FILTER ( ?d = ?x ) }
action argmax
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
[[{'concept': 'road'}, {'concept': 'railroad line'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?w WHERE { ?t rdf:type ?j . VALUES ( ?j ) { ( ontology:road ) ( ontology:railroad_line ) } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?q WHERE { { ?f property:terminus ?q . ?q rdf:type ontology:administrative_territorial_entity . ?f rdf:type ontology:road } UNION { ?f rdf:type ontology:railroad_line . ?q rdf:type ontology:administrative_territorial_entity . ?f property:terminus ?q } } GROUP BY ?q } . FILTER ( ?d = ?x ) }
[]
administrative territorial entity road railroad line
Q12191 Q1729 Q2814
SYSTEM
Nantes, Erfurt, Halle (Saale)
Q3812238 Q2814 Q5032535 Q12191 Q1729
(c(Q34442)|c(Q728937),P559,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
[ANSWERS] are the endpoints for max number of roads and railroad lines
[[{'concept': 'Q34442'}, {'concept': 'Q728937'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?w WHERE { ?t rdf:type ?j . VALUES ( ?j ) { ( ontology:Q34442 ) ( ontology:Q728937 ) } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?q WHERE { { ?f property:P559 ?q . ?q rdf:type ontology:Q56061 . ?f rdf:type ontology:Q34442 } UNION { ?f rdf:type ontology:Q728937 . ?q rdf:type ontology:Q56061 . ?f property:P559 ?q } } GROUP BY ?q } . FILTER ( ?d = ?x ) }
Bronygarth Halle (Saale) Cann River Nantes Erfurt
Nantes, Erfurt and Halle (Saale) are the endpoints for max number of roads and railroad lines
Nantes Erfurt Halle (Saale)
action argmax
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
[[{'concept': 'road'}, {'concept': 'railroad line'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?w WHERE { ?t rdf:type ?j . VALUES ( ?j ) { ( ontology:road ) ( ontology:railroad_line ) } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?q WHERE { { ?f property:terminus ?q . ?q rdf:type ontology:administrative_territorial_entity . ?f rdf:type ontology:road } UNION { ?f rdf:type ontology:railroad_line . ?q rdf:type ontology:administrative_territorial_entity . ?f property:terminus ?q } } GROUP BY ?q } . FILTER ( ?d = ?x ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q12191 Q1729 Q2814
P190
Q56061
USER
Which administrative territories are sister towns of those ones ?
(Q12191,P190,c(Q56061)) (Q1729,P190,c(Q56061)) (Q2814,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q12191', 'P190', {'concept': 'Q56061'}] ['Q1729', 'P190', {'concept': 'Q56061'}] ['Q2814', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?d property:P190 ?w . ?w rdf:type ontology:Q56061 . VALUES ( ?d ) { ( resource:Q3812238 ) ( resource:Q2814 ) ( resource:Q5032535 ) } }
Nantes Erfurt Halle (Saale)
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Nantes', 'sister city', {'concept': 'administrative territorial entity'}] ['Erfurt', 'sister city', {'concept': 'administrative territorial entity'}] ['Halle (Saale)', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?d property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity . VALUES ( ?d ) { ( resource:Bronygarth ) ( resource:Halle_(Saale) ) ( resource:Cann_River ) } }
[]
administrative territorial entity
Q8678 Q216 Q648
SYSTEM
Rio de Janeiro, Vilnius, Lille
Q518431 Q994 Q289267 Q8678 Q5083 Q5687 Q5468 Q1724 Q54108 Q10690 Q1001440 Q16568 Q134494 Q41621 Q986627 Q44255 Q189328 Q648 Q216 Q13329 Q771251 Q83813 Q1289 Q41329 Q1040 Q911 Q47048
(Q12191,P190,c(Q56061)) (Q1729,P190,c(Q56061)) (Q2814,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS] are sister towns of those ones
['Q12191', 'P190', {'concept': 'Q56061'}] ['Q1729', 'P190', {'concept': 'Q56061'}] ['Q2814', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?d property:P190 ?w . ?w rdf:type ontology:Q56061 . VALUES ( ?d ) { ( resource:Q3812238 ) ( resource:Q2814 ) ( resource:Q5032535 ) } }
Chimbote Tbilisi Dschang Rio de Janeiro Seattle Jericho Durban Saarbrücken Bahía Blanca Cardiff Pétionville Jacksonville Győr Haifa Shawnee San Miguel de Tucumán Lovech Lille Vilnius Piacenza Kati Savannah Grenoble Linz Karlsruhe Ufa Oulu
Rio de Janeiro, Vilnius and Lille are sister towns of those ones
Rio de Janeiro Vilnius Lille
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Nantes', 'sister city', {'concept': 'administrative territorial entity'}] ['Erfurt', 'sister city', {'concept': 'administrative territorial entity'}] ['Halle (Saale)', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?d property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity . VALUES ( ?d ) { ( resource:Bronygarth ) ( resource:Halle_(Saale) ) ( resource:Cann_River ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q8678 Q216 Q648
P6
Q502895
USER
Who are the heads of the government of those administrative territories ?
(Q8678,P6,c(Q502895)) (Q216,P6,c(Q502895)) (Q648,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
['Q8678', 'P6', {'concept': 'Q502895'}] ['Q216', 'P6', {'concept': 'Q502895'}] ['Q648', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?a property:P6 ?o . VALUES ( ?a ) { ( resource:Q518431 ) ( resource:Q994 ) ( resource:Q289267 ) } }
Rio de Janeiro Vilnius Lille
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Rio de Janeiro', 'head of government', {'concept': 'common name'}] ['Vilnius', 'head of government', {'concept': 'common name'}] ['Lille', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?a property:head_of_government ?o . VALUES ( ?a ) { ( resource:Chimbote ) ( resource:Tbilisi ) ( resource:Dschang ) } }
[]
common name
Q972007 Q1397662 Q228977
SYSTEM
Eduardo Paes, Remigijus Šimašius, Martine Aubry
Q972007 Q1397662 Q228977
(Q8678,P6,c(Q502895)) (Q216,P6,c(Q502895)) (Q648,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
The heads of the government of those administrative territories are the [ANSWERS]
['Q8678', 'P6', {'concept': 'Q502895'}] ['Q216', 'P6', {'concept': 'Q502895'}] ['Q648', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?a property:P6 ?o . VALUES ( ?a ) { ( resource:Q518431 ) ( resource:Q994 ) ( resource:Q289267 ) } }
Eduardo Paes Remigijus Šimašius Martine Aubry
The heads of the government of those administrative territories are the Eduardo Paes, Remigijus Šimašius and Martine Aubry
Eduardo Paes Remigijus Šimašius Martine Aubry
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Rio de Janeiro', 'head of government', {'concept': 'common name'}] ['Vilnius', 'head of government', {'concept': 'common name'}] ['Lille', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?a property:head_of_government ?o . VALUES ( ?a ) { ( resource:Chimbote ) ( resource:Tbilisi ) ( resource:Dschang ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q972007 Q1397662 Q228977
P6
Q56061
USER
Which administrative territories have a government lead by Eduardo Paes, Remigijus Šimašius and Martine Aubry ?
(c(Q56061),P6,Q972007) (c(Q56061),P6,Q1397662) (c(Q56061),P6,Q228977)
action union
action filter_type
action find_reverse
entity Q972007
relation P6
type Q56061
action filter_type
action find_reverse
entity Q1397662
relation P6
type Q56061
action filter_type
action find_reverse
entity Q228977
relation P6
type Q56061
[{'concept': 'Q56061'}, 'P6', 'Q972007'] [{'concept': 'Q56061'}, 'P6', 'Q1397662'] [{'concept': 'Q56061'}, 'P6', 'Q228977']
SELECT DISTINCT ?y WHERE { ?y property:P6 ?p . VALUES ( ?p ) { ( resource:Q1397662 ) ( resource:Q972007 ) } }
Eduardo Paes Remigijus Šimašius Martine Aubry
action union
action filter_type
action find_reverse
entity Eduardo Paes
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Remigijus Šimašius
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Martine Aubry
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Eduardo Paes'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Remigijus Šimašius'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Martine Aubry']
SELECT DISTINCT ?y WHERE { ?y property:head_of_government ?p . VALUES ( ?p ) { ( resource:Remigijus_Šimašius ) ( resource:Eduardo_Paes ) } }
[]
administrative territorial entity
Q8678 Q216 Q648
SYSTEM
Rio de Janeiro, Vilnius, Lille
Q8678 Q216 Q648 Q471969
(c(Q56061),P6,Q972007) (c(Q56061),P6,Q1397662) (c(Q56061),P6,Q228977)
action union
action filter_type
action find_reverse
entity Q972007
relation P6
type Q56061
action filter_type
action find_reverse
entity Q1397662
relation P6
type Q56061
action filter_type
action find_reverse
entity Q228977
relation P6
type Q56061
[ANSWERS] have a government lead by Eduardo Paes, Remigijus Šimašius and Martine Aubry
[{'concept': 'Q56061'}, 'P6', 'Q972007'] [{'concept': 'Q56061'}, 'P6', 'Q1397662'] [{'concept': 'Q56061'}, 'P6', 'Q228977']
SELECT DISTINCT ?y WHERE { ?y property:P6 ?p . VALUES ( ?p ) { ( resource:Q1397662 ) ( resource:Q972007 ) } }
Rio de Janeiro Vilnius Lille Lille metropolis
Rio de Janeiro, Vilnius and Lille have a government lead by Eduardo Paes, Remigijus Šimašius and Martine Aubry
Rio de Janeiro Vilnius Lille
action union
action filter_type
action find_reverse
entity Eduardo Paes
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Remigijus Šimašius
relation head of government
type administrative territorial entity
action filter_type
action find_reverse
entity Martine Aubry
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Eduardo Paes'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Remigijus Šimašius'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Martine Aubry']
SELECT DISTINCT ?y WHERE { ?y property:head_of_government ?p . VALUES ( ?p ) { ( resource:Remigijus_Šimašius ) ( resource:Eduardo_Paes ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8678
P17
Q15617994
USER
Which administrative territory is Rio de Janeiro present in ?
(Q8678,P17,c(Q15617994))
action filter_type
action find
entity Q8678
relation P17
type Q15617994
['Q8678', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q8678 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Rio de Janeiro
action filter_type
action find
entity Rio de Janeiro
relation country
type designation for an administrative territorial entity
['Rio de Janeiro', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Rio_de_Janeiro property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q8678,P17,c(Q15617994))
action filter_type
action find
entity Q8678
relation P17
type Q15617994
Which administrative territory is Rio de Janeiro present in
['Q8678', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q8678 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Brazil
Which administrative territory is Rio de Janeiro present in
Brazil
action filter_type
action find
entity Rio de Janeiro
relation country
type designation for an administrative territorial entity
['Rio de Janeiro', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Rio_de_Janeiro property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]