Simple Question (Direct)
Simple Question
Q6252532
P1050
Q2057971
USER
What does John Perceval suffer from ?
(Q6252532,P1050,c(Q2057971))
action filter_type
action find
entity Q6252532
relation P1050
type Q2057971
['Q6252532', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { resource:Q6252532 property:P1050 ?t . ?t rdf:type ontology:Q2057971 }
John Perceval
action filter_type
action find
entity John Perceval
relation medical condition
type health problem
['John Perceval', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { resource:John_Perceval property:medical_condition ?t . ?t rdf:type ontology:health_problem }
[]
health problem
Q12195
SYSTEM
poliomyelitis
Q12195
(Q6252532,P1050,c(Q2057971))
action filter_type
action find
entity Q6252532
relation P1050
type Q2057971
John Perceval suffers [ANSWER]
['Q6252532', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { resource:Q6252532 property:P1050 ?t . ?t rdf:type ontology:Q2057971 }
poliomyelitis
John Perceval suffers poliomyelitis
poliomyelitis
action filter_type
action find
entity John Perceval
relation medical condition
type health problem
['John Perceval', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { resource:John_Perceval property:medical_condition ?t . ?t rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12195
P509
Q502895
USER
Which people died from that health problem ?
(c(Q502895),P509,Q12195)
action filter_type
action find_reverse
entity Q12195
relation P509
type Q502895
[{'concept': 'Q502895'}, 'P509', 'Q12195']
SELECT DISTINCT ?w WHERE { ?w property:P509 resource:Q12195 . ?w rdf:type ontology:Q502895 }
poliomyelitis
action filter_type
action find_reverse
entity poliomyelitis
relation cause of death
type common name
[{'concept': 'common name'}, 'cause of death', 'poliomyelitis']
SELECT DISTINCT ?w WHERE { ?w property:cause_of_death resource:poliomyelitis . ?w rdf:type ontology:common_name }
[]
common name
Q546756 Q1179749 Q679784
SYSTEM
Avery Dulles, Jeff Hall, Pier Giorgio Frassati
Q85259 Q1863873 Q5592994 Q5335525 Q435192 Q16856144 Q4253384 Q679784 Q5610329 Q6775330 Q6504214 Q5292798 Q6828758 Q546756 Q1179749
(c(Q502895),P509,Q12195)
action filter_type
action find_reverse
entity Q12195
relation P509
type Q502895
[ANSWERS] died from that health problem
[{'concept': 'Q502895'}, 'P509', 'Q12195']
SELECT DISTINCT ?w WHERE { ?w property:P509 resource:Q12195 . ?w rdf:type ontology:Q502895 }
Manon Gropius Wolfgang Heyda Graham Laidler Ed Voss Eliška Misáková Ward Edmonds Lala Pier Giorgio Frassati Jack Coe Martin Doyle Lawrence Jacquelin Don Hornsby Michael Bowen Avery Dulles Jeff Hall
Avery Dulles, Jeff Hall and Pier Giorgio Frassati died from that health problem
Avery Dulles Jeff Hall Pier Giorgio Frassati
action filter_type
action find_reverse
entity poliomyelitis
relation cause of death
type common name
[{'concept': 'common name'}, 'cause of death', 'poliomyelitis']
SELECT DISTINCT ?w WHERE { ?w property:cause_of_death resource:poliomyelitis . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12303 Q6252532
P47 P27
Q1048835
USER
Which political territories are the countries of citizenship of John Perceval or are adjacent to Jerez de la Frontera ?
OR((Q6252532,P27,c(Q1048835)), (Q12303,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q6252532
relation P27
action find
entity Q12303
relation P47
type Q1048835
{'OR': [['Q6252532', 'P27', {'concept': 'Q1048835'}], ['Q12303', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q6252532 property:P27 ?h } UNION { resource:Q12303 property:P47 ?h } } . ?h rdf:type ontology:Q1048835 }
Jerez de la Frontera John Perceval
action filter_type
action union
action find
entity John Perceval
relation country of citizenship
action find
entity Jerez de la Frontera
relation shares border with
type political territorial entity
{'OR': [['John Perceval', 'country of citizenship', {'concept': 'political territorial entity'}], ['Jerez de la Frontera', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:John_Perceval property:country_of_citizenship ?h } UNION { resource:Jerez_de_la_Frontera property:shares_border_with ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q203042 Q642200 Q203040 Q1750939 Q818936 Q1610648 Q62705 Q637863 Q210887 Q1453000
SYSTEM
Some of them are Alcalá de los Gazules, Medina-Sidonia, El Puerto de Santa María, San José del Valle, Algar, Trebujena, El Cuervo de Sevilla, Arcos de la Frontera, Sanlúcar de Barrameda, Cortes de la Frontera
Q1610648 Q818936 Q210887 Q62705 Q1453000 Q1092146 Q203040 Q203042 Q261085 Q408 Q642200 Q637863 Q1631804 Q1750939 Q846159
OR((Q6252532,P27,c(Q1048835)), (Q12303,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q6252532
relation P27
action find
entity Q12303
relation P47
type Q1048835
[ANSWERS] are the countries of citizenship of John Perceval or are adjacent to Jerez de la Frontera
{'OR': [['Q6252532', 'P27', {'concept': 'Q1048835'}], ['Q12303', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q6252532 property:P27 ?h } UNION { resource:Q12303 property:P47 ?h } } . ?h rdf:type ontology:Q1048835 }
Trebujena Algar Sanlúcar de Barrameda El Cuervo de Sevilla Cortes de la Frontera Ubrique El Puerto de Santa María Alcalá de los Gazules Lebrija Australia Medina-Sidonia Arcos de la Frontera Paterna de Rivera San José del Valle Puerto Real
Alcalá de los Gazules, Medina-Sidonia, El Puerto de Santa María, San José del Valle, Algar, Trebujena, El Cuervo de Sevilla, Arcos de la Frontera, Sanlúcar de Barrameda and Cortes de la Frontera are the countries of citizenship of John Perceval or are adjacent to Jerez de la Frontera
Alcalá de los Gazules Medina-Sidonia El Puerto de Santa María San José del Valle Algar Trebujena El Cuervo de Sevilla Arcos de la Frontera Sanlúcar de Barrameda Cortes de la Frontera
action filter_type
action union
action find
entity John Perceval
relation country of citizenship
action find
entity Jerez de la Frontera
relation shares border with
type political territorial entity
{'OR': [['John Perceval', 'country of citizenship', {'concept': 'political territorial entity'}], ['Jerez de la Frontera', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:John_Perceval property:country_of_citizenship ?h } UNION { resource:Jerez_de_la_Frontera property:shares_border_with ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have ambassadorial relations with min number of political territories ?
(c(Q1048835),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?n ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?z ) WHERE { ?q property:P530 ?r . ?q rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q1048835 } GROUP BY ?q } } . { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?j ) WHERE { ?e rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 . ?e property:P530 ?l } GROUP BY ?e } . FILTER ( ?j = ?n ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?n ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?z ) WHERE { ?q property:diplomatic_relation ?r . ?q rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?j ) WHERE { ?e rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity . ?e property:diplomatic_relation ?l } GROUP BY ?e } . FILTER ( ?j = ?n ) }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWERS] have ambassadorial relations with min number of political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?n ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?z ) WHERE { ?q property:P530 ?r . ?q rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q1048835 } GROUP BY ?q } } . { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?j ) WHERE { ?e rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 . ?e property:P530 ?l } GROUP BY ?e } . FILTER ( ?j = ?n ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have ambassadorial relations with min number of political territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?n ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?z ) WHERE { ?q property:diplomatic_relation ?r . ?q rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?j ) WHERE { ?e rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity . ?e property:diplomatic_relation ?l } GROUP BY ?e } . FILTER ( ?j = ?n ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2410913 Q642200
P17
Q15617994
USER
Which administrative territories are Medina-Sidonia or Toromani present in ?
OR((Q642200,P17,c(Q15617994)), (Q2410913,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q642200
relation P17
action find
entity Q2410913
relation P17
type Q15617994
{'OR': [['Q642200', 'P17', {'concept': 'Q15617994'}], ['Q2410913', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?h property:P17 ?n . VALUES ( ?h ) { ( resource:Q642200 ) ( resource:Q2410913 ) } } . ?n rdf:type ontology:Q15617994 }
Toromani Medina-Sidonia
action filter_type
action union
action find
entity Medina-Sidonia
relation country
action find
entity Toromani
relation country
type designation for an administrative territorial entity
{'OR': [['Medina-Sidonia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Toromani', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?h property:country ?n . VALUES ( ?h ) { ( resource:Medina-Sidonia ) ( resource:Toromani ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q225
SYSTEM
Spain, Bosnia and Herzegovina
Q29 Q225
OR((Q642200,P17,c(Q15617994)), (Q2410913,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q642200
relation P17
action find
entity Q2410913
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q642200', 'P17', {'concept': 'Q15617994'}], ['Q2410913', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?h property:P17 ?n . VALUES ( ?h ) { ( resource:Q642200 ) ( resource:Q2410913 ) } } . ?n rdf:type ontology:Q15617994 }
Spain Bosnia and Herzegovina
Which administrative territories are Medina-Sidonia or Toromani present in
Spain Bosnia and Herzegovina
action filter_type
action union
action find
entity Medina-Sidonia
relation country
action find
entity Toromani
relation country
type designation for an administrative territorial entity
{'OR': [['Medina-Sidonia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Toromani', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?h property:country ?n . VALUES ( ?h ) { ( resource:Medina-Sidonia ) ( resource:Toromani ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories do that administrative territory belong to ?
(Q225,P17,c(Q15617994))
['Q225', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q225 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Bosnia and Herzegovina', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bosnia_and_Herzegovina property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q225
SYSTEM
Did you mean Bosnia and Herzegovina ?
(Q29,P17,c(Q15617994)) (Q225,P17,c(Q15617994))
[ANSWER]
['Q29', 'P17', {'concept': 'Q15617994'}] ['Q225', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q225 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Bosnia and Herzegovina ?
Bosnia and Herzegovina
['Spain', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Bosnia and Herzegovina', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bosnia_and_Herzegovina property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q225,P17,c(Q15617994))
['Q225', 'P17', {'concept': 'Q15617994'}]
['Bosnia and Herzegovina', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q225
(Q225,P17,c(Q15617994))
[ANSWER]
['Q225', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q225 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Bosnia and Herzegovina
1
['Bosnia and Herzegovina', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bosnia_and_Herzegovina property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with approximately 89 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 89
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?n = 89 ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?n ) WHERE { ?s property:P530 ?g . ?s rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?s } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 89
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?n = 89 ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?n ) WHERE { ?s property:diplomatic_relation ?g . ?s rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 89
[ANSWERS] have diplomatic relations with approximately 89 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?n = 89 ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?n ) WHERE { ?s property:P530 ?g . ?s rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?s } }
Germany Australia
Germany and Australia have diplomatic relations with approximately 89 administrative territories
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 89
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?n = 89 ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?n ) WHERE { ?s property:diplomatic_relation ?g . ?s rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q29
P463
Q484652
USER
How many international organizations had Spain as their member ?
(Q29,P463,c(Q484652))
action count
action filter_type
action find
entity Q29
relation P463
type Q484652
['Q29', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x rdf:type ontology:Q484652 . resource:Q29 property:P463 ?x }
Spain
action count
action filter_type
action find
entity Spain
relation member of
type international organization
['Spain', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x rdf:type ontology:international_organization . resource:Spain property:member_of ?x }
[]
international organization
SYSTEM
7
Q81299 Q190008 Q7184 Q1043527 Q188822 Q42262 Q1065
(Q29,P463,c(Q484652))
action count
action filter_type
action find
entity Q29
relation P463
type Q484652
[ANSWER]
['Q29', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x rdf:type ontology:Q484652 . resource:Q29 property:P463 ?x }
Organization for Security and Co-operation in Europe Central American Bank for Economic Integration North Atlantic Treaty Organisation Multilateral Investment Guarantee Agency Asian Development Bank European Space Agency United Nations
7
action count
action filter_type
action find
entity Spain
relation member of
type international organization
['Spain', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x rdf:type ontology:international_organization . resource:Spain property:member_of ?x }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q2589179
P463
Q484652
USER
And what about Wolfgang Behrendt?
(Q2589179,P463,c(Q484652))
action count
action filter_type
action find
entity Q2589179
relation P463
type Q484652
['Q2589179', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q2589179 property:P463 ?b . ?b rdf:type ontology:Q484652 }
Wolfgang Behrendt
action count
action filter_type
action find
entity Wolfgang Behrendt
relation member of
type international organization
['Wolfgang Behrendt', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Wolfgang_Behrendt property:member_of ?b . ?b rdf:type ontology:international_organization }
[]
international organization
SYSTEM
1
Q939743
(Q2589179,P463,c(Q484652))
action count
action filter_type
action find
entity Q2589179
relation P463
type Q484652
[ANSWER]
['Q2589179', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q2589179 property:P463 ?b . ?b rdf:type ontology:Q484652 }
Parliamentary Assembly of the Council of Europe
1
action count
action filter_type
action find
entity Wolfgang Behrendt
relation member of
type international organization
['Wolfgang Behrendt', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Wolfgang_Behrendt property:member_of ?b . ?b rdf:type ontology:international_organization }
[]