Simple Question (Direct)
Simple Question
Q1686060
P102
Q7210356
USER
Which political organization is Jeannie Drake, Baroness Drake a member of ?
(Q1686060,P102,c(Q7210356))
action filter_type
action find
entity Q1686060
relation P102
type Q7210356
['Q1686060', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q1686060 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
Jeannie Drake, Baroness Drake
action filter_type
action find
entity Jeannie Drake, Baroness Drake
relation member of political party
type political organization
['Jeannie Drake, Baroness Drake', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:Jeannie_Drake,_Baroness_Drake property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
political organization
Q9630
SYSTEM
Labour Party
Q9630
(Q1686060,P102,c(Q7210356))
action filter_type
action find
entity Q1686060
relation P102
type Q7210356
The [ANSWER] is Jeannie Drake, Baroness Drake a member of
['Q1686060', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q1686060 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
Labour Party
The Labour Party is Jeannie Drake, Baroness Drake a member of
Labour Party
action filter_type
action find
entity Jeannie Drake, Baroness Drake
relation member of political party
type political organization
['Jeannie Drake, Baroness Drake', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:Jeannie_Drake,_Baroness_Drake property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1686060
P1412
Q34770
USER
Which language can Jeannie Drake, Baroness Drake read ?
(Q1686060,P1412,c(Q34770))
action filter_type
action find
entity Q1686060
relation P1412
type Q34770
['Q1686060', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q1686060 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Jeannie Drake, Baroness Drake
action filter_type
action find
entity Jeannie Drake, Baroness Drake
relation languages spoken, written or signed
type language
['Jeannie Drake, Baroness Drake', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Jeannie_Drake,_Baroness_Drake property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q1686060,P1412,c(Q34770))
action filter_type
action find
entity Q1686060
relation P1412
type Q34770
Jeannie Drake , Baroness Drake can read in [ANSWER]
['Q1686060', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q1686060 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
English
Jeannie Drake , Baroness Drake can read in English
English
action filter_type
action find
entity Jeannie Drake, Baroness Drake
relation languages spoken, written or signed
type language
['Jeannie Drake, Baroness Drake', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Jeannie_Drake,_Baroness_Drake property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19664246
Q34770
USER
And also tell me about Colin Rowe?
(Q19664246,P1412,c(Q34770))
action filter_type
action find
entity Q19664246
relation P1412
type Q34770
['Q19664246', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { resource:Q19664246 property:P1412 ?y . ?y rdf:type ontology:Q34770 }
Colin Rowe
action filter_type
action find
entity Colin Rowe
relation languages spoken, written or signed
type language
['Colin Rowe', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { resource:Colin_Rowe property:languages_spoken,_written_or_signed ?y . ?y rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q19664246,P1412,c(Q34770))
action filter_type
action find
entity Q19664246
relation P1412
type Q34770
[ANSWER]
['Q19664246', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { resource:Q19664246 property:P1412 ?y . ?y rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity Colin Rowe
relation languages spoken, written or signed
type language
['Colin Rowe', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { resource:Colin_Rowe property:languages_spoken,_written_or_signed ?y . ?y rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1860 Q18039300 Q749496
P361
Q5962346
USER
Is that language a component of Firefly-class and North Bougainville languages ?
(Q1860,P361,Q18039300) (Q1860,P361,Q749496)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q18039300
relation P361
action find_reverse
entity Q749496
relation P361
['Q1860', 'P361', 'Q18039300'] ['Q1860', 'P361', 'Q749496']
ASK WHERE { resource:Q1860 property:P361 resource:Q18039300 . resource:Q1860 property:P361 resource:Q749496 }
English Firefly-class North Bougainville languages
action is_in
entity English
action intersection
action find_reverse
entity Firefly-class
relation part of
action find_reverse
entity North Bougainville languages
relation part of
['English', 'part of', 'Firefly-class'] ['English', 'part of', 'North Bougainville languages']
ASK WHERE { resource:English property:part_of resource:Firefly-class . resource:English property:part_of resource:North_Bougainville_languages }
[]
classification scheme
SYSTEM
NO
(Q1860,P361,Q18039300) (Q1860,P361,Q749496)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q18039300
relation P361
action find_reverse
entity Q749496
relation P361
[ANSWER]
['Q1860', 'P361', 'Q18039300'] ['Q1860', 'P361', 'Q749496']
ASK WHERE { resource:Q1860 property:P361 resource:Q18039300 . resource:Q1860 property:P361 resource:Q749496 }
No
action is_in
entity English
action intersection
action find_reverse
entity Firefly-class
relation part of
action find_reverse
entity North Bougainville languages
relation part of
['English', 'part of', 'Firefly-class'] ['English', 'part of', 'North Bougainville languages']
ASK WHERE { resource:English property:part_of resource:Firefly-class . resource:English property:part_of resource:North_Bougainville_languages }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1686060 Q6730418 Q84
P937
Q56061
USER
Do Jeannie Drake, Baroness Drake have Maghery and London as their work location ?
(Q1686060,P937,Q6730418) (Q1686060,P937,Q84)
action is_in
entity Q1686060
action intersection
action find_reverse
entity Q6730418
relation P937
action find_reverse
entity Q84
relation P937
['Q1686060', 'P937', 'Q6730418'] ['Q1686060', 'P937', 'Q84']
ASK WHERE { resource:Q1686060 property:P937 resource:Q6730418 . resource:Q1686060 property:P937 resource:Q84 }
Jeannie Drake, Baroness Drake Maghery London
action is_in
entity Jeannie Drake, Baroness Drake
action intersection
action find_reverse
entity Maghery
relation work location
action find_reverse
entity London
relation work location
['Jeannie Drake, Baroness Drake', 'work location', 'Maghery'] ['Jeannie Drake, Baroness Drake', 'work location', 'London']
ASK WHERE { resource:Jeannie_Drake,_Baroness_Drake property:work_location resource:Maghery . resource:Jeannie_Drake,_Baroness_Drake property:work_location resource:London }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q1686060,P937,Q6730418) (Q1686060,P937,Q84)
action is_in
entity Q1686060
action intersection
action find_reverse
entity Q6730418
relation P937
action find_reverse
entity Q84
relation P937
[ANSWER]
['Q1686060', 'P937', 'Q6730418'] ['Q1686060', 'P937', 'Q84']
ASK WHERE { resource:Q1686060 property:P937 resource:Q6730418 . resource:Q1686060 property:P937 resource:Q84 }
NO and YES respectively
action is_in
entity Jeannie Drake, Baroness Drake
action intersection
action find_reverse
entity Maghery
relation work location
action find_reverse
entity London
relation work location
['Jeannie Drake, Baroness Drake', 'work location', 'Maghery'] ['Jeannie Drake, Baroness Drake', 'work location', 'London']
ASK WHERE { resource:Jeannie_Drake,_Baroness_Drake property:work_location resource:Maghery . resource:Jeannie_Drake,_Baroness_Drake property:work_location resource:London }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3838016
Q502895
USER
And how about Luca Balsofiore?
(Q3838016,P20,c(Q502895))
action filter_type
action find
entity Q3838016
relation P20
type Q502895
['Q3838016', 'P20', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3838016 property:P20 ?h . ?h rdf:type ontology:Q502895 }
Luca Balsofiore
action filter_type
action find
entity Luca Balsofiore
relation place of death
type common name
['Luca Balsofiore', 'place of death', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Luca_Balsofiore property:place_of_death ?h . ?h rdf:type ontology:common_name }
[]
common name
Q3838290
SYSTEM
Luca Tarigo
Q3838290
(Q3838016,P20,c(Q502895))
action filter_type
action find
entity Q3838016
relation P20
type Q502895
[ANSWER]
['Q3838016', 'P20', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3838016 property:P20 ?h . ?h rdf:type ontology:Q502895 }
Luca Tarigo
Luca Tarigo
action filter_type
action find
entity Luca Balsofiore
relation place of death
type common name
['Luca Balsofiore', 'place of death', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Luca_Balsofiore property:place_of_death ?h . ?h rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P407
Q34770 Q7725634 Q14795564
USER
Which languages are the languages of work for min number of literary works and determinators for date of periodic occurrence ?
(c(Q7725634)|c(Q14795564),P407,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action find_reverse_tuple_counts
relation P407
type Q34770
type Q14795564
[[{'concept': 'Q7725634'}, {'concept': 'Q14795564'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?h ) WHERE { { ?s rdf:type ontology:Q7725634 . ?g rdf:type ontology:Q34770 . ?s property:P407 ?g } UNION { ?g rdf:type ontology:Q34770 . ?s rdf:type ontology:Q14795564 . ?s property:P407 ?g } } GROUP BY ?g } . FILTER ( ?h = ?m ) . { SELECT DISTINCT ( MIN ( ?x ) AS ?m ) { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?x ) WHERE { ?w rdf:type ?j . VALUES ( ?j ) { ( ontology:Q7725634 ) ( ontology:Q14795564 ) } } GROUP BY ?b } } }
action argmin
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action find_reverse_tuple_counts
relation language of work or name
type language
type determinator for date of periodic occurrence
[[{'concept': 'literary work'}, {'concept': 'determinator for date of periodic occurrence'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?h ) WHERE { { ?s rdf:type ontology:literary_work . ?g rdf:type ontology:language . ?s property:language_of_work_or_name ?g } UNION { ?g rdf:type ontology:language . ?s rdf:type ontology:determinator_for_date_of_periodic_occurrence . ?s property:language_of_work_or_name ?g } } GROUP BY ?g } . FILTER ( ?h = ?m ) . { SELECT DISTINCT ( MIN ( ?x ) AS ?m ) { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?x ) WHERE { ?w rdf:type ?j . VALUES ( ?j ) { ( ontology:literary_work ) ( ontology:determinator_for_date_of_periodic_occurrence ) } } GROUP BY ?b } } }
[]
language literary work determinator for date of periodic occurrence
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q8752 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q7725634)|c(Q14795564),P407,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action find_reverse_tuple_counts
relation P407
type Q34770
type Q14795564
[ANSWERS] are the languages of work for min number of literary works and determinators for date of periodic occurrence
[[{'concept': 'Q7725634'}, {'concept': 'Q14795564'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?h ) WHERE { { ?s rdf:type ontology:Q7725634 . ?g rdf:type ontology:Q34770 . ?s property:P407 ?g } UNION { ?g rdf:type ontology:Q34770 . ?s rdf:type ontology:Q14795564 . ?s property:P407 ?g } } GROUP BY ?g } . FILTER ( ?h = ?m ) . { SELECT DISTINCT ( MIN ( ?x ) AS ?m ) { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?x ) WHERE { ?w rdf:type ?j . VALUES ( ?j ) { ( ontology:Q7725634 ) ( ontology:Q14795564 ) } } GROUP BY ?b } } }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse Basque 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 min number of literary works and determinators for date of periodic occurrence
Old Egyptian Old Church Slavonic Etruscan
action argmin
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action find_reverse_tuple_counts
relation language of work or name
type language
type determinator for date of periodic occurrence
[[{'concept': 'literary work'}, {'concept': 'determinator for date of periodic occurrence'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?h ) WHERE { { ?s rdf:type ontology:literary_work . ?g rdf:type ontology:language . ?s property:language_of_work_or_name ?g } UNION { ?g rdf:type ontology:language . ?s rdf:type ontology:determinator_for_date_of_periodic_occurrence . ?s property:language_of_work_or_name ?g } } GROUP BY ?g } . FILTER ( ?h = ?m ) . { SELECT DISTINCT ( MIN ( ?x ) AS ?m ) { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?x ) WHERE { ?w rdf:type ?j . VALUES ( ?j ) { ( ontology:literary_work ) ( ontology:determinator_for_date_of_periodic_occurrence ) } } GROUP BY ?b } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3838016
P27
Q7275
USER
Which state is Luca Balsofiore an inhabitant of ?
(Q3838016,P27,c(Q7275))
action filter_type
action find
entity Q3838016
relation P27
type Q7275
['Q3838016', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q7275 . resource:Q3838016 property:P27 ?s }
Luca Balsofiore
action filter_type
action find
entity Luca Balsofiore
relation country of citizenship
type state
['Luca Balsofiore', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:state . resource:Luca_Balsofiore property:country_of_citizenship ?s }
[]
state
Q172579
SYSTEM
Kingdom of Italy
Q172579
(Q3838016,P27,c(Q7275))
action filter_type
action find
entity Q3838016
relation P27
type Q7275
The [ANSWER] is Luca Balsofiore an inhabitant of
['Q3838016', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q7275 . resource:Q3838016 property:P27 ?s }
Kingdom of Italy
The Kingdom of Italy is Luca Balsofiore an inhabitant of
Kingdom of Italy
action filter_type
action find
entity Luca Balsofiore
relation country of citizenship
type state
['Luca Balsofiore', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:state . resource:Luca_Balsofiore property:country_of_citizenship ?s }
[]