Simple Question (Direct)
Simple Question
Q5708424
P106
Q12737077
USER
Which occupation is the profession of Gösta Elfving ?
(Q5708424,P106,c(Q12737077))
action filter_type
action find
entity Q5708424
relation P106
type Q12737077
['Q5708424', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q5708424 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Gösta Elfving
action filter_type
action find
entity Gösta Elfving
relation occupation
type occupation
['Gösta Elfving', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Gösta_Elfving property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q5708424,P106,c(Q12737077))
action filter_type
action find
entity Q5708424
relation P106
type Q12737077
The [ANSWER] is the profession of Gösta Elfving
['Q5708424', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q5708424 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
politician
The politician is the profession of Gösta Elfving
politician
action filter_type
action find
entity Gösta Elfving
relation occupation
type occupation
['Gösta Elfving', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Gösta_Elfving property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5708424
P39
Q12737077
USER
Which occupation was a position held by Gösta Elfving ?
(Q5708424,P39,c(Q12737077))
action filter_type
action find
entity Q5708424
relation P39
type Q12737077
['Q5708424', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q5708424 property:P39 ?n . ?n rdf:type ontology:Q12737077 }
Gösta Elfving
action filter_type
action find
entity Gösta Elfving
relation position held
type occupation
['Gösta Elfving', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Gösta_Elfving property:position_held ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q10655178
SYSTEM
Member of the Riksdag
Q10655178
(Q5708424,P39,c(Q12737077))
action filter_type
action find
entity Q5708424
relation P39
type Q12737077
The [ANSWER] was a position held by Gösta Elfving
['Q5708424', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q5708424 property:P39 ?n . ?n rdf:type ontology:Q12737077 }
Member of the Riksdag
The Member of the Riksdag was a position held by Gösta Elfving
Member of the Riksdag
action filter_type
action find
entity Gösta Elfving
relation position held
type occupation
['Gösta Elfving', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Gösta_Elfving property:position_held ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5708424
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q10655178,P27,c(Q15617994))
action filter_type
action find
entity Q5708424
relation P27
type Q15617994
['Q10655178', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q5708424 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Gösta Elfving
action filter_type
action find
entity Gösta Elfving
relation country of citizenship
type designation for an administrative territorial entity
['Member of the Riksdag', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Gösta_Elfving property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q10655178,P27,c(Q15617994))
action filter_type
action find
entity Q5708424
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q10655178', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q5708424 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Sweden
Sweden is that person a civilian of
Sweden
action filter_type
action find
entity Gösta Elfving
relation country of citizenship
type designation for an administrative territorial entity
['Member of the Riksdag', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Gösta_Elfving property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q34 Q53740
P6
Q502895
USER
Is Ingvar Carlsson the head of government of that administrative territory ?
(Q34,P6,Q53740)
action is_in
entity Q53740
action find
entity Q34
relation P6
['Q34', 'P6', 'Q53740']
ASK WHERE { resource:Q34 property:P6 resource:Q53740 }
Sweden Ingvar Carlsson
action is_in
entity Ingvar Carlsson
action find
entity Sweden
relation head of government
['Sweden', 'head of government', 'Ingvar Carlsson']
ASK WHERE { resource:Sweden property:head_of_government resource:Ingvar_Carlsson }
[]
common name
SYSTEM
YES
(Q34,P6,Q53740)
action is_in
entity Q53740
action find
entity Q34
relation P6
[ANSWER]
['Q34', 'P6', 'Q53740']
ASK WHERE { resource:Q34 property:P6 resource:Q53740 }
Yes
action is_in
entity Ingvar Carlsson
action find
entity Sweden
relation head of government
['Sweden', 'head of government', 'Ingvar Carlsson']
ASK WHERE { resource:Sweden property:head_of_government resource:Ingvar_Carlsson }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34
P530
Q1048835
USER
Who have diplomatic relationships with Sweden ?
(Q34,P530,c(Q1048835))
action filter_type
action find
entity Q34
relation P530
type Q1048835
['Q34', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . resource:Q34 property:P530 ?l }
Sweden
action filter_type
action find
entity Sweden
relation diplomatic relation
type political territorial entity
['Sweden', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Sweden property:diplomatic_relation ?l }
[]
political territorial entity
Q16 Q408 Q183
SYSTEM
Canada, Australia, Germany
Q16 Q408 Q183
(Q34,P530,c(Q1048835))
action filter_type
action find
entity Q34
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with Sweden
['Q34', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . resource:Q34 property:P530 ?l }
Canada Australia Germany
Canada, Australia and Germany have diplomatic relationships with Sweden
Canada Australia Germany
action filter_type
action find
entity Sweden
relation diplomatic relation
type political territorial entity
['Sweden', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Sweden property:diplomatic_relation ?l }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q1048835 Q41176 Q3947
USER
Which political territories do max number of buildings or houses belong to ?
(c(Q41176)|c(Q3947),P17,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q41176
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q3947
[[{'concept': 'Q41176'}, {'concept': 'Q3947'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) ?e WHERE { VALUES ( ?c ) { ( ontology:Q41176 ) ( ontology:Q3947 ) } . ?h rdf:type ?c } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) ?q WHERE { { ?j property:P17 ?q . ?j rdf:type ontology:Q3947 . ?q rdf:type ontology:Q1048835 } UNION { ?j property:P17 ?q . ?q rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q41176 } } GROUP BY ?q } . FILTER ( ?m = ?p ) }
action argmax
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type building
action find_reverse_tuple_counts
relation country
type political territorial entity
type house
[[{'concept': 'building'}, {'concept': 'house'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) ?e WHERE { VALUES ( ?c ) { ( ontology:building ) ( ontology:house ) } . ?h rdf:type ?c } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) ?q WHERE { { ?j property:country ?q . ?j rdf:type ontology:house . ?q rdf:type ontology:political_territorial_entity } UNION { ?j property:country ?q . ?q rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:building } } GROUP BY ?q } . FILTER ( ?m = ?p ) }
[]
political territorial entity building house
Q183
SYSTEM
Germany
Q183
(c(Q41176)|c(Q3947),P17,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q41176
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q3947
[ANSWER] max number of buildings or houses belong to
[[{'concept': 'Q41176'}, {'concept': 'Q3947'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) ?e WHERE { VALUES ( ?c ) { ( ontology:Q41176 ) ( ontology:Q3947 ) } . ?h rdf:type ?c } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) ?q WHERE { { ?j property:P17 ?q . ?j rdf:type ontology:Q3947 . ?q rdf:type ontology:Q1048835 } UNION { ?j property:P17 ?q . ?q rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q41176 } } GROUP BY ?q } . FILTER ( ?m = ?p ) }
Germany
Germany max number of buildings or houses belong to
Germany
action argmax
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type building
action find_reverse_tuple_counts
relation country
type political territorial entity
type house
[[{'concept': 'building'}, {'concept': 'house'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) ?e WHERE { VALUES ( ?c ) { ( ontology:building ) ( ontology:house ) } . ?h rdf:type ?c } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) ?q WHERE { { ?j property:country ?q . ?j rdf:type ontology:house . ?q rdf:type ontology:political_territorial_entity } UNION { ?j property:country ?q . ?q rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:building } } GROUP BY ?q } . FILTER ( ?m = ?p ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P159
Q163740
USER
Which nonprofit organizations have HQ at that political territory ?
(c(Q163740),P159,Q183)
action filter_type
action find_reverse
entity Q183
relation P159
type Q163740
[{'concept': 'Q163740'}, 'P159', 'Q183']
SELECT DISTINCT ?o WHERE { ?o property:P159 resource:Q183 . ?o rdf:type ontology:Q163740 }
Germany
action filter_type
action find_reverse
entity Germany
relation headquarters location
type nonprofit organization
[{'concept': 'nonprofit organization'}, 'headquarters location', 'Germany']
SELECT DISTINCT ?o WHERE { ?o property:headquarters_location resource:Germany . ?o rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q1699520 Q630944 Q1203678
SYSTEM
VDMA, Rettet den Regenwald, Deutsche Phytomedizinische Gesellschaft
Q1699520 Q630944 Q1203678
(c(Q163740),P159,Q183)
action filter_type
action find_reverse
entity Q183
relation P159
type Q163740
VDMA, rettet den Regenwald and Deutsche Phytomedizinische Gesellschaft have HQ at that political territory
[{'concept': 'Q163740'}, 'P159', 'Q183']
SELECT DISTINCT ?o WHERE { ?o property:P159 resource:Q183 . ?o rdf:type ontology:Q163740 }
VDMA Rettet den Regenwald Deutsche Phytomedizinische Gesellschaft
VDMA, rettet den Regenwald and Deutsche Phytomedizinische Gesellschaft have HQ at that political territory
VDMA Rettet den Regenwald Deutsche Phytomedizinische Gesellschaft
action filter_type
action find_reverse
entity Germany
relation headquarters location
type nonprofit organization
[{'concept': 'nonprofit organization'}, 'headquarters location', 'Germany']
SELECT DISTINCT ?o WHERE { ?o property:headquarters_location resource:Germany . ?o rdf:type ontology:nonprofit_organization }
[]