Simple Question (Direct)
Simple Question
Q1759706
P166
Q618779
USER
What was awarded to Paul Illing ?
(Q1759706,P166,c(Q618779))
action filter_type
action find
entity Q1759706
relation P166
type Q618779
['Q1759706', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?g WHERE { resource:Q1759706 property:P166 ?g . ?g rdf:type ontology:Q618779 }
Paul Illing
action filter_type
action find
entity Paul Illing
relation award received
type award
['Paul Illing', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?g WHERE { resource:Paul_Illing property:award_received ?g . ?g rdf:type ontology:award }
[]
award
Q10905276
SYSTEM
Commander's Cross of the Order of Merit of the Federal Republic of Germany
Q10905276
(Q1759706,P166,c(Q618779))
action filter_type
action find
entity Q1759706
relation P166
type Q618779
Germany [ANSWER] was awarded to Paul Illing
['Q1759706', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?g WHERE { resource:Q1759706 property:P166 ?g . ?g rdf:type ontology:Q618779 }
Commander's Cross of the Order of Merit of the Federal Republic of Germany
Germany Commander's Cross of the Order of Merit of the Federal Republic of Germany was awarded to Paul Illing
Commander's Cross of the Order of Merit of the Federal Republic of Germany
action filter_type
action find
entity Paul Illing
relation award received
type award
['Paul Illing', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?g WHERE { resource:Paul_Illing property:award_received ?g . ?g rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1759706
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q10905276,P106,c(Q12737077))
action filter_type
action find
entity Q1759706
relation P106
type Q12737077
['Q10905276', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q1759706 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Paul Illing
action filter_type
action find
entity Paul Illing
relation occupation
type occupation
["Commander's Cross of the Order of Merit of the Federal Republic of Germany", 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Paul_Illing property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q10905276,P106,c(Q12737077))
action filter_type
action find
entity Q1759706
relation P106
type Q12737077
Is [ANSWER] is the profession of that person
['Q10905276', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q1759706 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
politician
Is politician is the profession of that person
politician
action filter_type
action find
entity Paul Illing
relation occupation
type occupation
["Commander's Cross of the Order of Merit of the Federal Republic of Germany", 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Paul_Illing property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10905276
P17
Q1048835
USER
Which political territory is Commander's Cross of the Order of Merit of the Federal Republic of Germany located in ?
(Q10905276,P17,c(Q1048835))
action filter_type
action find
entity Q10905276
relation P17
type Q1048835
['Q10905276', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q10905276 property:P17 ?b . ?b rdf:type ontology:Q1048835 }
Commander's Cross of the Order of Merit of the Federal Republic of Germany
action filter_type
action find
entity Commander's Cross of the Order of Merit of the Federal Republic of Germany
relation country
type political territorial entity
["Commander's Cross of the Order of Merit of the Federal Republic of Germany", 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Commander's_Cross_of_the_Order_of_Merit_of_the_Federal_Republic_of_Germany property:country ?b . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q10905276,P17,c(Q1048835))
action filter_type
action find
entity Q10905276
relation P17
type Q1048835
[ANSWER] is Commander's Cross of the Order of Merit of the Federal Republic of [ANSWER] located in
['Q10905276', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q10905276 property:P17 ?b . ?b rdf:type ontology:Q1048835 }
Germany
Germany is Commander's Cross of the Order of Merit of the Federal Republic of Germany located in
Germany
action filter_type
action find
entity Commander's Cross of the Order of Merit of the Federal Republic of Germany
relation country
type political territorial entity
["Commander's Cross of the Order of Merit of the Federal Republic of Germany", 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Commander's_Cross_of_the_Order_of_Merit_of_the_Federal_Republic_of_Germany property:country ?b . ?b rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5470697
Q1048835
USER
And also tell me about FortWhyte Alive?
(Q5470697,P17,c(Q1048835))
action filter_type
action find
entity Q5470697
relation P17
type Q1048835
['Q5470697', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q5470697 property:P17 ?u }
FortWhyte Alive
action filter_type
action find
entity FortWhyte Alive
relation country
type political territorial entity
['FortWhyte Alive', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:FortWhyte_Alive property:country ?u }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q5470697,P17,c(Q1048835))
action filter_type
action find
entity Q5470697
relation P17
type Q1048835
[ANSWER]
['Q5470697', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q5470697 property:P17 ?u }
Canada
Canada
action filter_type
action find
entity FortWhyte Alive
relation country
type political territorial entity
['FortWhyte Alive', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:FortWhyte_Alive property:country ?u }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P47
Q15617994 Q1048835
USER
How many administrative territories or political territories are adjacent to that political territory ?
(Q16,P47,c(Q15617994)) (Q16,P47,c(Q1048835)) (Q16,P47,c(Q15617994)) (Q16,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q16
relation P47
type Q15617994
action filter_type
action find
entity Q16
relation P47
type Q1048835
['Q16', 'P47', {'concept': 'Q15617994'}] ['Q16', 'P47', {'concept': 'Q1048835'}] ['Q16', 'P47', {'concept': 'Q15617994'}] ['Q16', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { ?d rdf:type ?p . VALUES ( ?p ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } }
action count
action union
action filter_type
action find
entity Canada
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Canada
relation shares border with
type political territorial entity
['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Canada', 'shares border with', {'concept': 'political territorial entity'}] ['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Canada', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { ?d rdf:type ?p . VALUES ( ?p ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
6
Q1979 Q223 Q4969463 Q30 Q38610 Q34617
(Q16,P47,c(Q15617994)) (Q16,P47,c(Q1048835)) (Q16,P47,c(Q15617994)) (Q16,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q16
relation P47
type Q15617994
action filter_type
action find
entity Q16
relation P47
type Q1048835
[ANSWER]
['Q16', 'P47', {'concept': 'Q15617994'}] ['Q16', 'P47', {'concept': 'Q1048835'}] ['Q16', 'P47', {'concept': 'Q15617994'}] ['Q16', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { ?d rdf:type ?p . VALUES ( ?p ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } }
Prince Edward Island Greenland British Arctic Territories United States of America Dominion of Newfoundland Saint Pierre and Miquelon
6
action count
action union
action filter_type
action find
entity Canada
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Canada
relation shares border with
type political territorial entity
['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Canada', 'shares border with', {'concept': 'political territorial entity'}] ['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Canada', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { ?d rdf:type ?p . VALUES ( ?p ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q927146 Q183
P530 P27
Q15617994
USER
Which administrative territories have a diplomatic relationship with Germany and are the native countriesof George Mihai Florescu ?
AND((Q183,P530,c(Q15617994)), (Q927146,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q927146
relation P27
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q927146', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { resource:Q183 property:P530 ?u . resource:Q927146 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
George Mihai Florescu Germany
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity George Mihai Florescu
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['George Mihai Florescu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:Germany property:diplomatic_relation ?u . resource:George_Mihai_Florescu property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218
SYSTEM
Romania
Q218
AND((Q183,P530,c(Q15617994)), (Q927146,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q927146
relation P27
type Q15617994
[ANSWER] have a diplomatic relationship with Germany and are the native countriesof George Mihai Florescu
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q927146', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { resource:Q183 property:P530 ?u . resource:Q927146 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Romania
Romania have a diplomatic relationship with Germany and are the native countriesof George Mihai Florescu
Romania
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity George Mihai Florescu
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['George Mihai Florescu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:Germany property:diplomatic_relation ?u . resource:George_Mihai_Florescu property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with atleast 82 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 82
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?z ) WHERE { ?g property:P530 ?d . ?g rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?z >= 82 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 82
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?z ) WHERE { ?g property:diplomatic_relation ?d . ?g rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?z >= 82 ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 82
[ANSWERS] have diplomatic relations with atleast 82 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?z ) WHERE { ?g property:P530 ?d . ?g rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?z >= 82 ) }
Germany Australia
Germany and Australia have diplomatic relations with atleast 82 administrative territories
Germany Australia
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 82
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?z ) WHERE { ?g property:diplomatic_relation ?d . ?g rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?z >= 82 ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P1427
Q1048835 Q31629 Q878123
USER
How many political territories are the start points of around the same number of types of sport or racings as that political territory ?
(c(Q31629)|c(Q878123),P1427,c(Q1048835))
[[{'concept': 'Q31629'}, {'concept': 'Q878123'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q878123 }
[[{'concept': 'type of sport'}, {'concept': 'racing'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:racing }
[]
political territorial entity type of sport racing
Comparative|Count over More/Less|Mult. entity type|Clarification
Q183
SYSTEM
Did you mean Germany ?
(c(Q31629)|c(Q878123),P1427,c(Q1048835))
[ANSWER]
[[{'concept': 'Q31629'}, {'concept': 'Q878123'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q878123 }
Did you mean Germany ?
Germany
[[{'concept': 'type of sport'}, {'concept': 'racing'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:racing }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q31629)|c(Q878123),P1427,c(Q1048835))
[[{'concept': 'Q31629'}, {'concept': 'Q878123'}], 'P1427', {'concept': 'Q1048835'}]
[[{'concept': 'type of sport'}, {'concept': 'racing'}], 'start point', {'concept': 'political territorial entity'}]
[]
SYSTEM
17
Q1556707 Q55480 Q183 Q2264671 Q49661 Q1766072 Q1625868 Q832991 Q474080 Q499184 Q668016 Q913277 Q601112 Q743741 Q492420 Q672483 Q987453
(c(Q31629)|c(Q878123),P1427,c(Q1048835))
[ANSWER]
[[{'concept': 'Q31629'}, {'concept': 'Q878123'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q878123 }
Vila Nova de Cacela Colmenar Viejo Germany El Palomar Mauren Santo Domingo de Silos Alcañices Sóller Amorebieta-Etxano Roquetas de Mar Iurreta Mazarrón Pollença Felanitx Getxo Ordizia San Javier
17
[[{'concept': 'type of sport'}, {'concept': 'racing'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:racing }
[]