Simple Question (Direct)
Simple Question
Q4140918
P410
Q4189293
USER
What is the title conferred upon Robert Howe ?
(Q4140918,P410,c(Q4189293))
action filter_type
action find
entity Q4140918
relation P410
type Q4189293
['Q4140918', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?v WHERE { resource:Q4140918 property:P410 ?v . ?v rdf:type ontology:Q4189293 }
Robert Howe
action filter_type
action find
entity Robert Howe
relation military rank
type title
['Robert Howe', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?v WHERE { resource:Robert_Howe property:military_rank ?v . ?v rdf:type ontology:title }
[]
title
Q3280545
SYSTEM
major general
Q3280545
(Q4140918,P410,c(Q4189293))
action filter_type
action find
entity Q4140918
relation P410
type Q4189293
The title conferred upon Robert Howe is a [ANSWER]
['Q4140918', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?v WHERE { resource:Q4140918 property:P410 ?v . ?v rdf:type ontology:Q4189293 }
major general
The title conferred upon Robert Howe is a major general
major general
action filter_type
action find
entity Robert Howe
relation military rank
type title
['Robert Howe', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?v WHERE { resource:Robert_Howe property:military_rank ?v . ?v rdf:type ontology:title }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4140918
P1412
Q34770
USER
Which language can that person read ?
(Q3280545,P1412,c(Q34770))
action filter_type
action find
entity Q4140918
relation P1412
type Q34770
['Q3280545', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { resource:Q4140918 property:P1412 ?d . ?d rdf:type ontology:Q34770 }
Robert Howe
action filter_type
action find
entity Robert Howe
relation languages spoken, written or signed
type language
['major general', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { resource:Robert_Howe property:languages_spoken,_written_or_signed ?d . ?d rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q3280545,P1412,c(Q34770))
action filter_type
action find
entity Q4140918
relation P1412
type Q34770
That person can read the [ANSWER]
['Q3280545', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { resource:Q4140918 property:P1412 ?d . ?d rdf:type ontology:Q34770 }
English
That person can read the English
English
action filter_type
action find
entity Robert Howe
relation languages spoken, written or signed
type language
['major general', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { resource:Robert_Howe property:languages_spoken,_written_or_signed ?d . ?d rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1860
P361
Q5962346
USER
Which classification schemes are that language a component of ?
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q5962346 . resource:Q1860 property:P361 ?g }
English
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:classification_scheme . resource:English property:part_of ?g }
[]
classification scheme
Q1346342 Q5329170
SYSTEM
Anglic languages, Anglo-Frisian languages
Q1346342 Q5329170
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
[ANSWERS] are that language a component of
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q5962346 . resource:Q1860 property:P361 ?g }
Anglic languages Anglo-Frisian languages
Anglic languages and Anglo-Frisian languages are that language a component of
Anglic languages Anglo-Frisian languages
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:classification_scheme . resource:English property:part_of ?g }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3082027
Q5962346
USER
And what about Ye'kuana language?
(Q3082027,P361,c(Q5962346))
action filter_type
action find
entity Q3082027
relation P361
type Q5962346
['Q3082027', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?s WHERE { resource:Q3082027 property:P361 ?s . ?s rdf:type ontology:Q5962346 }
Ye'kuana language
action filter_type
action find
entity Ye'kuana language
relation part of
type classification scheme
["Ye'kuana language", 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?s WHERE { resource:Ye'kuana_language property:part_of ?s . ?s rdf:type ontology:classification_scheme }
[]
classification scheme
Q33090
SYSTEM
Cariban languages
Q33090
(Q3082027,P361,c(Q5962346))
action filter_type
action find
entity Q3082027
relation P361
type Q5962346
[ANSWER]
['Q3082027', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?s WHERE { resource:Q3082027 property:P361 ?s . ?s rdf:type ontology:Q5962346 }
Cariban languages
Cariban languages
action filter_type
action find
entity Ye'kuana language
relation part of
type classification scheme
["Ye'kuana language", 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?s WHERE { resource:Ye'kuana_language property:part_of ?s . ?s rdf:type ontology:classification_scheme }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q339993 Q4140918
P47 P27
Q15617994
USER
Which administrative territories are the native countriesof Robert Howe or share border with Jerzu ?
OR((Q4140918,P27,c(Q15617994)), (Q339993,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q4140918
relation P27
action find
entity Q339993
relation P47
type Q15617994
{'OR': [['Q4140918', 'P27', {'concept': 'Q15617994'}], ['Q339993', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q4140918 property:P27 ?g } UNION { resource:Q339993 property:P47 ?g } } . ?g rdf:type ontology:Q15617994 }
Jerzu Robert Howe
action filter_type
action union
action find
entity Robert Howe
relation country of citizenship
action find
entity Jerzu
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Robert Howe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jerzu', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Robert_Howe property:country_of_citizenship ?g } UNION { resource:Jerzu property:shares_border_with ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q340613 Q340611 Q340603 Q339713 Q339798 Q339919 Q30 Q285528 Q13657
SYSTEM
Ulassai, Tertenia, Osini, Arzana, Cardedu, Gairo, Sardinia, United States of America, Villaputzu, Lanusei
Q340613 Q340611 Q340603 Q339713 Q339798 Q339919 Q30 Q285528 Q13657
OR((Q4140918,P27,c(Q15617994)), (Q339993,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q4140918
relation P27
action find
entity Q339993
relation P47
type Q15617994
[ANSWERS] are the native countriesof Robert Howe or share border with Jerzu
{'OR': [['Q4140918', 'P27', {'concept': 'Q15617994'}], ['Q339993', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q4140918 property:P27 ?g } UNION { resource:Q339993 property:P47 ?g } } . ?g rdf:type ontology:Q15617994 }
Ulassai Tertenia Osini Arzana Cardedu Gairo, Sardinia United States of America Villaputzu Lanusei
Ulassai, Tertenia, Osini, Arzana, Cardedu, Gairo, Sardinia, United States of America, Villaputzu and Lanusei are the native countriesof Robert Howe or share border with Jerzu
Ulassai Tertenia Osini Arzana Cardedu Gairo, Sardinia United States of America Villaputzu Lanusei
action filter_type
action union
action find
entity Robert Howe
relation country of citizenship
action find
entity Jerzu
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Robert Howe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jerzu', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Robert_Howe property:country_of_citizenship ?g } UNION { resource:Jerzu property:shares_border_with ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?y ) { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?h ) WHERE { ?f property:P530 ?x . ?f rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?f } } . { SELECT DISTINCT ?l ( COUNT ( ?g ) AS ?p ) WHERE { ?l property:P530 ?g . ?l rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?p = ?y ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?y ) { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?h ) WHERE { ?f property:diplomatic_relation ?x . ?f rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } } . { SELECT DISTINCT ?l ( COUNT ( ?g ) AS ?p ) WHERE { ?l property:diplomatic_relation ?g . ?l rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?p = ?y ) }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] hold diplomatic relationship with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?y ) { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?h ) WHERE { ?f property:P530 ?x . ?f rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?f } } . { SELECT DISTINCT ?l ( COUNT ( ?g ) AS ?p ) WHERE { ?l property:P530 ?g . ?l rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?p = ?y ) }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea hold diplomatic relationship with min number of administrative territories
Solomon Islands Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?y ) { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?h ) WHERE { ?f property:diplomatic_relation ?x . ?f rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } } . { SELECT DISTINCT ?l ( COUNT ( ?g ) AS ?p ) WHERE { ?l property:diplomatic_relation ?g . ?l rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?p = ?y ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3089188
P17
Q1292279
USER
Are Chad–Sudan border present in those political territories ?
(Q3089188,P17,Q685) (Q3089188,P17,Q691)
action is_in
entity prev_answer
action find
entity Q3089188
relation P17
['Q3089188', 'P17', 'Q685'] ['Q3089188', 'P17', 'Q691']
ASK WHERE { resource:Q3089188 property:P17 ?d . VALUES ( ?d ) { ( resource:Q685 ) ( resource:Q691 ) } }
Chad–Sudan border
action is_in
entity prev_answer
action find
entity Chad–Sudan border
relation country
['Chad–Sudan border', 'country', 'Solomon Islands'] ['Chad–Sudan border', 'country', 'Papua New Guinea']
ASK WHERE { resource:Chad–Sudan_border property:country ?d . VALUES ( ?d ) { ( resource:Solomon_Islands ) ( resource:Papua_New_Guinea ) } }
[]
political border
SYSTEM
NO
(Q3089188,P17,Q685) (Q3089188,P17,Q691)
action is_in
entity prev_answer
action find
entity Q3089188
relation P17
[ANSWER]
['Q3089188', 'P17', 'Q685'] ['Q3089188', 'P17', 'Q691']
ASK WHERE { resource:Q3089188 property:P17 ?d . VALUES ( ?d ) { ( resource:Q685 ) ( resource:Q691 ) } }
No
action is_in
entity prev_answer
action find
entity Chad–Sudan border
relation country
['Chad–Sudan border', 'country', 'Solomon Islands'] ['Chad–Sudan border', 'country', 'Papua New Guinea']
ASK WHERE { resource:Chad–Sudan_border property:country ?d . VALUES ( ?d ) { ( resource:Solomon_Islands ) ( resource:Papua_New_Guinea ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P1376
Q56061
USER
Which administrative territories are the capital of United States of America ?
(c(Q56061),P1376,Q30)
action filter_type
action find_reverse
entity Q30
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q30']
SELECT DISTINCT ?q WHERE { ?q property:P1376 resource:Q30 . ?q rdf:type ontology:Q56061 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'United States of America']
SELECT DISTINCT ?q WHERE { ?q property:capital_of resource:United_States_of_America . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60 Q61
SYSTEM
New York City, Washington, D.C.
Q60 Q61
(c(Q56061),P1376,Q30)
action filter_type
action find_reverse
entity Q30
relation P1376
type Q56061
[ANSWERS]
[{'concept': 'Q56061'}, 'P1376', 'Q30']
SELECT DISTINCT ?q WHERE { ?q property:P1376 resource:Q30 . ?q rdf:type ontology:Q56061 }
New York City Washington, D.C.
The New York City and Washington, D.C. are the capital of United States of America
New York City Washington, D.C.
action filter_type
action find_reverse
entity United States of America
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'United States of America']
SELECT DISTINCT ?q WHERE { ?q property:capital_of resource:United_States_of_America . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q60 Q61
P190
Q56061
USER
Which administrative territories are twin towns of New York City and Washington, D.C. ?
(Q60,P190,c(Q56061)) (Q61,P190,c(Q56061))
action union
action filter_type
action find
entity Q60
relation P190
type Q56061
action filter_type
action find
entity Q61
relation P190
type Q56061
['Q60', 'P190', {'concept': 'Q56061'}] ['Q61', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { resource:Q60 property:P190 ?t . ?t rdf:type ontology:Q56061 } UNION { resource:Q61 property:P190 ?t . ?t rdf:type ontology:Q56061 } }
New York City Washington, D.C.
action union
action filter_type
action find
entity New York City
relation sister city
type administrative territorial entity
action filter_type
action find
entity Washington, D.C.
relation sister city
type administrative territorial entity
['New York City', 'sister city', {'concept': 'administrative territorial entity'}] ['Washington, D.C.', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { resource:New_York_City property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity } UNION { resource:Washington,_D.C. property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q2807 Q1781 Q1524
SYSTEM
Madrid, Budapest, Athens
Q3630 Q3561 Q33935 Q34820 Q51103 Q34647 Q2807 Q956 Q1781 Q84 Q85 Q1490 Q1218 Q585 Q3718 Q987 Q3640 Q239 Q3761 Q1861 Q956 Q188304 Q1524 Q1491 Q585
(Q60,P190,c(Q56061)) (Q61,P190,c(Q56061))
action union
action filter_type
action find
entity Q60
relation P190
type Q56061
action filter_type
action find
entity Q61
relation P190
type Q56061
[ANSWERS] are twin towns of New York City and Washington, D.C.
['Q60', 'P190', {'concept': 'Q56061'}] ['Q61', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { resource:Q60 property:P190 ?t . ?t rdf:type ontology:Q56061 } UNION { resource:Q61 property:P190 ?t . ?t rdf:type ontology:Q56061 } }
Jakarta Algiers Tel Aviv Santo Domingo Cali Johannesburg Madrid Beijing Budapest London Cairo Tokyo Jerusalem Oslo Dakar New Delhi Ankara Brussels Accra Bangkok Beijing Sunderland Athens La Paz Oslo
Madrid, Budapest and Athens are twin towns of New York City and Washington, D.C.
Madrid Budapest Athens
action union
action filter_type
action find
entity New York City
relation sister city
type administrative territorial entity
action filter_type
action find
entity Washington, D.C.
relation sister city
type administrative territorial entity
['New York City', 'sister city', {'concept': 'administrative territorial entity'}] ['Washington, D.C.', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { resource:New_York_City property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity } UNION { resource:Washington,_D.C. property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2807 Q1781 Q1524
P17
Q15617994
USER
Which administrative territories are Madrid, Budapest and Athens located in ?
(Q2807,P17,c(Q15617994)) (Q1781,P17,c(Q15617994)) (Q1524,P17,c(Q15617994))
action union
action filter_type
action find
entity Q2807
relation P17
type Q15617994
action filter_type
action find
entity Q1781
relation P17
type Q15617994
action filter_type
action find
entity Q1524
relation P17
type Q15617994
['Q2807', 'P17', {'concept': 'Q15617994'}] ['Q1781', 'P17', {'concept': 'Q15617994'}] ['Q1524', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { resource:Q1781 property:P17 ?j . ?j rdf:type ontology:Q15617994 } UNION { resource:Q2807 property:P17 ?j . ?j rdf:type ontology:Q15617994 } }
Madrid Budapest Athens
action union
action filter_type
action find
entity Madrid
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Budapest
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Athens
relation country
type designation for an administrative territorial entity
['Madrid', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Budapest', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Athens', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { resource:Budapest property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Madrid property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q29 Q28 Q41
SYSTEM
Spain, Hungary, Greece
Q29 Q28 Q41
(Q2807,P17,c(Q15617994)) (Q1781,P17,c(Q15617994)) (Q1524,P17,c(Q15617994))
action union
action filter_type
action find
entity Q2807
relation P17
type Q15617994
action filter_type
action find
entity Q1781
relation P17
type Q15617994
action filter_type
action find
entity Q1524
relation P17
type Q15617994
Madrid , Budapest and Athens are located in [ANSWERS]
['Q2807', 'P17', {'concept': 'Q15617994'}] ['Q1781', 'P17', {'concept': 'Q15617994'}] ['Q1524', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { resource:Q1781 property:P17 ?j . ?j rdf:type ontology:Q15617994 } UNION { resource:Q2807 property:P17 ?j . ?j rdf:type ontology:Q15617994 } }
Spain Hungary Greece
Madrid , Budapest and Athens are located in Spain, Hungary and Greece
Spain Hungary Greece
action union
action filter_type
action find
entity Madrid
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Budapest
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Athens
relation country
type designation for an administrative territorial entity
['Madrid', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Budapest', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Athens', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { resource:Budapest property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Madrid property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]