Simple Question (Direct)
Simple Question
Q4578132
P102
Q7210356
USER
Which party does Jens Olai Steffensen belong to ?
(Q4578132,P102,c(Q7210356))
action filter_type
action find
entity Q4578132
relation P102
type Q7210356
['Q4578132', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q7210356 . resource:Q4578132 property:P102 ?e }
Jens Olai Steffensen
action filter_type
action find
entity Jens Olai Steffensen
relation member of political party
type political organization
['Jens Olai Steffensen', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:political_organization . resource:Jens_Olai_Steffensen property:member_of_political_party ?e }
[]
political organization
Q190219
SYSTEM
Norwegian Labour Party
Q190219
(Q4578132,P102,c(Q7210356))
action filter_type
action find
entity Q4578132
relation P102
type Q7210356
Jens Olai Steffensen belongs to [ANSWER]
['Q4578132', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q7210356 . resource:Q4578132 property:P102 ?e }
Norwegian Labour Party
Jens Olai Steffensen belongs to Norwegian Labour Party
Norwegian Labour Party
action filter_type
action find
entity Jens Olai Steffensen
relation member of political party
type political organization
['Jens Olai Steffensen', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:political_organization . resource:Jens_Olai_Steffensen property:member_of_political_party ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4578132
P937
Q56061
USER
Which administrative territory is the work location of that person ?
(Q190219,P937,c(Q56061))
action filter_type
action find
entity Q4578132
relation P937
type Q56061
['Q190219', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q4578132 property:P937 ?p }
Jens Olai Steffensen
action filter_type
action find
entity Jens Olai Steffensen
relation work location
type administrative territorial entity
['Norwegian Labour Party', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Jens_Olai_Steffensen property:work_location ?p }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(Q190219,P937,c(Q56061))
action filter_type
action find
entity Q4578132
relation P937
type Q56061
[ANSWER] is the work location of that person
['Q190219', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q4578132 property:P937 ?p }
Oslo
Oslo is the work location of that person
Oslo
action filter_type
action find
entity Jens Olai Steffensen
relation work location
type administrative territorial entity
['Norwegian Labour Party', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Jens_Olai_Steffensen property:work_location ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4578132
P106
Q12737077
USER
What is the job of Jens Olai Steffensen ?
(Q4578132,P106,c(Q12737077))
action filter_type
action find
entity Q4578132
relation P106
type Q12737077
['Q4578132', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q4578132 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Jens Olai Steffensen
action filter_type
action find
entity Jens Olai Steffensen
relation occupation
type occupation
['Jens Olai Steffensen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Jens_Olai_Steffensen property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q4578132,P106,c(Q12737077))
action filter_type
action find
entity Q4578132
relation P106
type Q12737077
The job of Jens Olai Steffensen is a [ANSWER]
['Q4578132', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q4578132 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
politician
The job of Jens Olai Steffensen is a politician
politician
action filter_type
action find
entity Jens Olai Steffensen
relation occupation
type occupation
['Jens Olai Steffensen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Jens_Olai_Steffensen property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4578132
P27
Q15617994
USER
Which administrative territory does Jens Olai Steffensen belong to ?
(Q4578132,P27,c(Q15617994))
action filter_type
action find
entity Q4578132
relation P27
type Q15617994
['Q4578132', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q4578132 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Jens Olai Steffensen
action filter_type
action find
entity Jens Olai Steffensen
relation country of citizenship
type designation for an administrative territorial entity
['Jens Olai Steffensen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Jens_Olai_Steffensen property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q4578132,P27,c(Q15617994))
action filter_type
action find
entity Q4578132
relation P27
type Q15617994
Jens Olai Steffensen belongs to [ANSWER]
['Q4578132', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q4578132 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Norway
Jens Olai Steffensen belongs to Norway
Norway
action filter_type
action find
entity Jens Olai Steffensen
relation country of citizenship
type designation for an administrative territorial entity
['Jens Olai Steffensen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Jens_Olai_Steffensen property:country_of_citizenship ?p . ?p 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 atleast 33 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 33
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?q >= 33 ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?q ) WHERE { ?a property:P530 ?b . ?a rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?a } }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 33
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?q >= 33 ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?q ) WHERE { ?a property:diplomatic_relation ?b . ?a rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q16
SYSTEM
Germany, Australia, Canada
Q183 Q408 Q16
(c(Q15617994),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 33
[ANSWERS] have diplomatic relations with atleast 33 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?q >= 33 ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?q ) WHERE { ?a property:P530 ?b . ?a rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?a } }
Germany Australia Canada
Germany, Australia and Canada have diplomatic relations with atleast 33 administrative territories
Germany Australia Canada
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 33
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?q >= 33 ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?q ) WHERE { ?a property:diplomatic_relation ?b . ?a rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q183 Q408 Q16
P1313
Q12737077
USER
Which occupations are fulfilled by Germany, Australia and Canada ?
(Q183,P1313,c(Q12737077)) (Q408,P1313,c(Q12737077)) (Q16,P1313,c(Q12737077))
action union
action filter_type
action find
entity Q183
relation P1313
type Q12737077
action filter_type
action find
entity Q408
relation P1313
type Q12737077
action filter_type
action find
entity Q16
relation P1313
type Q12737077
['Q183', 'P1313', {'concept': 'Q12737077'}] ['Q408', 'P1313', {'concept': 'Q12737077'}] ['Q16', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { { resource:Q408 property:P1313 ?g . ?g rdf:type ontology:Q12737077 } UNION { resource:Q183 property:P1313 ?g . ?g rdf:type ontology:Q12737077 } }
Germany Australia Canada
action union
action filter_type
action find
entity Germany
relation office held by head of government
type occupation
action filter_type
action find
entity Australia
relation office held by head of government
type occupation
action filter_type
action find
entity Canada
relation office held by head of government
type occupation
['Germany', 'office held by head of government', {'concept': 'occupation'}] ['Australia', 'office held by head of government', {'concept': 'occupation'}] ['Canada', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { { resource:Australia property:office_held_by_head_of_government ?g . ?g rdf:type ontology:occupation } UNION { resource:Germany property:office_held_by_head_of_government ?g . ?g rdf:type ontology:occupation } }
[]
occupation
Q4970706 Q319145 Q839078
SYSTEM
Federal Chancellor of Germany, Prime Minister of Australia, Prime Minister of Canada
Q4970706 Q319145 Q839078
(Q183,P1313,c(Q12737077)) (Q408,P1313,c(Q12737077)) (Q16,P1313,c(Q12737077))
action union
action filter_type
action find
entity Q183
relation P1313
type Q12737077
action filter_type
action find
entity Q408
relation P1313
type Q12737077
action filter_type
action find
entity Q16
relation P1313
type Q12737077
[ANSWERS] are fulfilled by Germany, Australia and Canada
['Q183', 'P1313', {'concept': 'Q12737077'}] ['Q408', 'P1313', {'concept': 'Q12737077'}] ['Q16', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { { resource:Q408 property:P1313 ?g . ?g rdf:type ontology:Q12737077 } UNION { resource:Q183 property:P1313 ?g . ?g rdf:type ontology:Q12737077 } }
Federal Chancellor of Germany Prime Minister of Australia Prime Minister of Canada
Federal Chancellor of Germany, Prime Minister of Australia and Prime Minister of Canada are fulfilled by Germany, Australia and Canada
Federal Chancellor of Germany Prime Minister of Australia Prime Minister of Canada
action union
action filter_type
action find
entity Germany
relation office held by head of government
type occupation
action filter_type
action find
entity Australia
relation office held by head of government
type occupation
action filter_type
action find
entity Canada
relation office held by head of government
type occupation
['Germany', 'office held by head of government', {'concept': 'occupation'}] ['Australia', 'office held by head of government', {'concept': 'occupation'}] ['Canada', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { { resource:Australia property:office_held_by_head_of_government ?g . ?g rdf:type ontology:occupation } UNION { resource:Germany property:office_held_by_head_of_government ?g . ?g rdf:type ontology:occupation } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4970706 Q319145 Q839078
P1313
Q1048835
USER
Which political territories have those occupations as office of head of government ?
(c(Q1048835),P1313,Q4970706) (c(Q1048835),P1313,Q319145) (c(Q1048835),P1313,Q839078)
action filter_type
action find_reverse
entity prev_answer
relation P1313
type Q1048835
[{'concept': 'Q1048835'}, 'P1313', 'Q4970706'] [{'concept': 'Q1048835'}, 'P1313', 'Q319145'] [{'concept': 'Q1048835'}, 'P1313', 'Q839078']
SELECT DISTINCT ?j WHERE { VALUES ( ?n ) { ( resource:Q4970706 ) ( resource:Q319145 ) ( resource:Q839078 ) } . ?j property:P1313 ?n . ?j rdf:type ontology:Q1048835 }
Federal Chancellor of Germany Prime Minister of Australia Prime Minister of Canada
action filter_type
action find_reverse
entity prev_answer
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'Federal Chancellor of Germany'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'Prime Minister of Australia'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'Prime Minister of Canada']
SELECT DISTINCT ?j WHERE { VALUES ( ?n ) { ( resource:Federal_Chancellor_of_Germany ) ( resource:Prime_Minister_of_Australia ) ( resource:Prime_Minister_of_Canada ) } . ?j property:office_held_by_head_of_government ?n . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q408 Q16
SYSTEM
Germany, Australia, Canada
Q183 Q408 Q16
(c(Q1048835),P1313,Q4970706) (c(Q1048835),P1313,Q319145) (c(Q1048835),P1313,Q839078)
action filter_type
action find_reverse
entity prev_answer
relation P1313
type Q1048835
[ANSWERS] have those occupations as office of head of government
[{'concept': 'Q1048835'}, 'P1313', 'Q4970706'] [{'concept': 'Q1048835'}, 'P1313', 'Q319145'] [{'concept': 'Q1048835'}, 'P1313', 'Q839078']
SELECT DISTINCT ?j WHERE { VALUES ( ?n ) { ( resource:Q4970706 ) ( resource:Q319145 ) ( resource:Q839078 ) } . ?j property:P1313 ?n . ?j rdf:type ontology:Q1048835 }
Germany Australia Canada
Germany, Australia and Canada have those occupations as office of head of government
Germany Australia Canada
action filter_type
action find_reverse
entity prev_answer
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'Federal Chancellor of Germany'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'Prime Minister of Australia'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'Prime Minister of Canada']
SELECT DISTINCT ?j WHERE { VALUES ( ?n ) { ( resource:Federal_Chancellor_of_Germany ) ( resource:Prime_Minister_of_Australia ) ( resource:Prime_Minister_of_Canada ) } . ?j property:office_held_by_head_of_government ?n . ?j rdf:type ontology:political_territorial_entity }
[]