Simple Question (Direct)
Simple Question
Q1511533
P512
Q3412758
USER
What degree or diploma was awarded to Gerhard Endreß ?
(Q1511533,P512,c(Q3412758))
action filter_type
action find
entity Q1511533
relation P512
type Q3412758
['Q1511533', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?f WHERE { resource:Q1511533 property:P512 ?f . ?f rdf:type ontology:Q3412758 }
Gerhard Endreß
action filter_type
action find
entity Gerhard Endreß
relation academic degree
type qualification
['Gerhard Endreß', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?f WHERE { resource:Gerhard_Endreß property:academic_degree ?f . ?f rdf:type ontology:qualification }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q1511533,P512,c(Q3412758))
action filter_type
action find
entity Q1511533
relation P512
type Q3412758
The [ANSWER] was awarded to Gerhard Endreß
['Q1511533', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?f WHERE { resource:Q1511533 property:P512 ?f . ?f rdf:type ontology:Q3412758 }
doctoral degree
The doctoral degree was awarded to Gerhard Endreß
doctoral degree
action filter_type
action find
entity Gerhard Endreß
relation academic degree
type qualification
['Gerhard Endreß', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?f WHERE { resource:Gerhard_Endreß property:academic_degree ?f . ?f rdf:type ontology:qualification }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1511533
P27
Q1048835
USER
Which political territory is the country of citizenship of that person ?
(Q849697,P27,c(Q1048835))
action filter_type
action find
entity Q1511533
relation P27
type Q1048835
['Q849697', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q1511533 property:P27 ?y . ?y rdf:type ontology:Q1048835 }
Gerhard Endreß
action filter_type
action find
entity Gerhard Endreß
relation country of citizenship
type political territorial entity
['doctoral degree', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Gerhard_Endreß property:country_of_citizenship ?y . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q849697,P27,c(Q1048835))
action filter_type
action find
entity Q1511533
relation P27
type Q1048835
[ANSWER] is the country of citizenship of that person
['Q849697', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q1511533 property:P27 ?y . ?y rdf:type ontology:Q1048835 }
Germany
Germany is the country of citizenship of that person
Germany
action filter_type
action find
entity Gerhard Endreß
relation country of citizenship
type political territorial entity
['doctoral degree', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Gerhard_Endreß property:country_of_citizenship ?y . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q783
P530
Q1048835 Q15617994
USER
Which administrative territories have diplomatic associations with greater number of political territories than Honduras ?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q783
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?m ) WHERE { ?t rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 . ?t property:P530 ?k } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { resource:Q783 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?m > ?b ) }
Honduras
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Honduras
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?m ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity . ?t property:diplomatic_relation ?k } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { resource:Honduras property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m > ?b ) }
[]
political territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q889 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q230 Q20 Q27 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q783
relation P530
type Q15617994
[ANSWERS] have diplomatic associations with greater number of political territories than Honduras
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?m ) WHERE { ?t rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 . ?t property:P530 ?k } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { resource:Q783 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?m > ?b ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil Afghanistan South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Georgia Norway Ireland Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
Italy, Brazil and United States of America have diplomatic associations with greater number of political territories than Honduras
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Honduras
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?m ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity . ?t property:diplomatic_relation ?k } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { resource:Honduras property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m > ?b ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16267628
P840
Q166142
USER
Do Cognition: An Erica Reed Thriller have their narrative set in those administrative territories ?
(Q16267628,P840,Q38) (Q16267628,P840,Q155) (Q16267628,P840,Q30)
action is_in
entity prev_answer
action find
entity Q16267628
relation P840
['Q16267628', 'P840', 'Q38'] ['Q16267628', 'P840', 'Q155'] ['Q16267628', 'P840', 'Q30']
ASK WHERE { resource:Q16267628 property:P840 ?t . VALUES ( ?t ) { ( resource:Q801 ) ( resource:Q142 ) ( resource:Q145 ) } }
Cognition: An Erica Reed Thriller
action is_in
entity prev_answer
action find
entity Cognition: An Erica Reed Thriller
relation narrative location
['Cognition: An Erica Reed Thriller', 'narrative location', 'Italy'] ['Cognition: An Erica Reed Thriller', 'narrative location', 'Brazil'] ['Cognition: An Erica Reed Thriller', 'narrative location', 'United States of America']
ASK WHERE { resource:Cognition:_An_Erica_Reed_Thriller property:narrative_location ?t . VALUES ( ?t ) { ( resource:Israel ) ( resource:France ) ( resource:United_Kingdom ) } }
[]
application
SYSTEM
NO
(Q16267628,P840,Q38) (Q16267628,P840,Q155) (Q16267628,P840,Q30)
action is_in
entity prev_answer
action find
entity Q16267628
relation P840
[ANSWER]
['Q16267628', 'P840', 'Q38'] ['Q16267628', 'P840', 'Q155'] ['Q16267628', 'P840', 'Q30']
ASK WHERE { resource:Q16267628 property:P840 ?t . VALUES ( ?t ) { ( resource:Q801 ) ( resource:Q142 ) ( resource:Q145 ) } }
No
action is_in
entity prev_answer
action find
entity Cognition: An Erica Reed Thriller
relation narrative location
['Cognition: An Erica Reed Thriller', 'narrative location', 'Italy'] ['Cognition: An Erica Reed Thriller', 'narrative location', 'Brazil'] ['Cognition: An Erica Reed Thriller', 'narrative location', 'United States of America']
ASK WHERE { resource:Cognition:_An_Erica_Reed_Thriller property:narrative_location ?t . VALUES ( ?t ) { ( resource:Israel ) ( resource:France ) ( resource:United_Kingdom ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P36
Q20667921 Q515 Q15617994
USER
Which administrative territories consists of max number of french administrative divisions and cities as their capital ?
(c(Q15617994),P36,c(Q20667921)|c(Q515))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action find_tuple_counts
relation P36
type Q15617994
type Q515
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?x WHERE { { ?x property:P36 ?v . ?v rdf:type ontology:Q20667921 . ?x rdf:type ontology:Q15617994 } UNION { ?x property:P36 ?v . ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q515 } } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?k WHERE { VALUES ( ?b ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?c rdf:type ?b } GROUP BY ?k } . FILTER ( ?f = ?s ) }
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'city'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?x WHERE { { ?x property:capital ?v . ?v rdf:type ontology:type_of_french_administrative_division . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x property:capital ?v . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:city } } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?k WHERE { VALUES ( ?b ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?c rdf:type ?b } GROUP BY ?k } . FILTER ( ?f = ?s ) }
[]
type of french administrative division city designation for an administrative territorial entity
Q12789
SYSTEM
Var
Q12789
(c(Q15617994),P36,c(Q20667921)|c(Q515))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action find_tuple_counts
relation P36
type Q15617994
type Q515
[ANSWER] consists of max number of french administrative divisions and cities as their capital
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?x WHERE { { ?x property:P36 ?v . ?v rdf:type ontology:Q20667921 . ?x rdf:type ontology:Q15617994 } UNION { ?x property:P36 ?v . ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q515 } } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?k WHERE { VALUES ( ?b ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?c rdf:type ?b } GROUP BY ?k } . FILTER ( ?f = ?s ) }
Var
Var consists of max number of french administrative divisions and cities as their capital
Var
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'city'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?x WHERE { { ?x property:capital ?v . ?v rdf:type ontology:type_of_french_administrative_division . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x property:capital ?v . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:city } } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?k WHERE { VALUES ( ?b ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?c rdf:type ?b } GROUP BY ?k } . FILTER ( ?f = ?s ) }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q12789 Q142
P17
Q15617994
USER
Is Var located in France ?
(Q12789,P17,Q142)
action is_in
entity Q142
action find
entity Q12789
relation P17
['Q12789', 'P17', 'Q142']
ASK WHERE { resource:Q12789 property:P17 resource:Q142 }
Var France
action is_in
entity France
action find
entity Var
relation country
['Var', 'country', 'France']
ASK WHERE { resource:Var property:country resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q12789,P17,Q142)
action is_in
entity Q142
action find
entity Q12789
relation P17
[ANSWER]
['Q12789', 'P17', 'Q142']
ASK WHERE { resource:Q12789 property:P17 resource:Q142 }
Yes
action is_in
entity France
action find
entity Var
relation country
['Var', 'country', 'France']
ASK WHERE { resource:Var property:country resource:France }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q30 Q16 Q183
P530
Q1048835
USER
Does United States of America have tactful political relations with Canada and Germany ?
(Q30,P530,Q16) (Q30,P530,Q183)
action is_in
entity Q30
action intersection
action find_reverse
entity Q16
relation P530
action find_reverse
entity Q183
relation P530
['Q30', 'P530', 'Q16'] ['Q30', 'P530', 'Q183']
ASK WHERE { resource:Q30 property:P530 resource:Q183 . resource:Q30 property:P530 resource:Q16 }
United States of America Canada Germany
action is_in
entity United States of America
action intersection
action find_reverse
entity Canada
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Canada'] ['United States of America', 'diplomatic relation', 'Germany']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Germany . resource:United_States_of_America property:diplomatic_relation resource:Canada }
[]
political territorial entity
SYSTEM
YES
(Q30,P530,Q16) (Q30,P530,Q183)
action is_in
entity Q30
action intersection
action find_reverse
entity Q16
relation P530
action find_reverse
entity Q183
relation P530
[ANSWER]
['Q30', 'P530', 'Q16'] ['Q30', 'P530', 'Q183']
ASK WHERE { resource:Q30 property:P530 resource:Q183 . resource:Q30 property:P530 resource:Q16 }
Yes
action is_in
entity United States of America
action intersection
action find_reverse
entity Canada
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Canada'] ['United States of America', 'diplomatic relation', 'Germany']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Germany . resource:United_States_of_America property:diplomatic_relation resource:Canada }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q38 Q214 Q387598
P530
Q15617994
USER
Does Italy have ambassadorial relations with Slovakia and San Nicolò d'Arcidano ?
(Q38,P530,Q214) (Q38,P530,Q387598)
action is_in
entity Q38
action intersection
action find_reverse
entity Q214
relation P530
action find_reverse
entity Q387598
relation P530
['Q38', 'P530', 'Q214'] ['Q38', 'P530', 'Q387598']
ASK WHERE { resource:Q38 property:P530 resource:Q387598 . resource:Q38 property:P530 resource:Q214 }
Italy Slovakia San Nicolò d'Arcidano
action is_in
entity Italy
action intersection
action find_reverse
entity Slovakia
relation diplomatic relation
action find_reverse
entity San Nicolò d'Arcidano
relation diplomatic relation
['Italy', 'diplomatic relation', 'Slovakia'] ['Italy', 'diplomatic relation', "San Nicolò d'Arcidano"]
ASK WHERE { resource:Italy property:diplomatic_relation resource:San_Nicolò_d'Arcidano . resource:Italy property:diplomatic_relation resource:Slovakia }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q38,P530,Q214) (Q38,P530,Q387598)
action is_in
entity Q38
action intersection
action find_reverse
entity Q214
relation P530
action find_reverse
entity Q387598
relation P530
[ANSWER]
['Q38', 'P530', 'Q214'] ['Q38', 'P530', 'Q387598']
ASK WHERE { resource:Q38 property:P530 resource:Q387598 . resource:Q38 property:P530 resource:Q214 }
YES and NO respectively
action is_in
entity Italy
action intersection
action find_reverse
entity Slovakia
relation diplomatic relation
action find_reverse
entity San Nicolò d'Arcidano
relation diplomatic relation
['Italy', 'diplomatic relation', 'Slovakia'] ['Italy', 'diplomatic relation', "San Nicolò d'Arcidano"]
ASK WHERE { resource:Italy property:diplomatic_relation resource:San_Nicolò_d'Arcidano . resource:Italy property:diplomatic_relation resource:Slovakia }
[]