Simple Question (Direct)
Simple Question
Q1388789
P463
Q13226383
USER
Which facility was Alfred Kosing a member of ?
(Q1388789,P463,c(Q13226383))
action filter_type
action find
entity Q1388789
relation P463
type Q13226383
['Q1388789', 'P463', {'concept': 'Q13226383'}]
SELECT DISTINCT ?o WHERE { resource:Q1388789 property:P463 ?o . ?o rdf:type ontology:Q13226383 }
Alfred Kosing
action filter_type
action find
entity Alfred Kosing
relation member of
type facility
['Alfred Kosing', 'member of', {'concept': 'facility'}]
SELECT DISTINCT ?o WHERE { resource:Alfred_Kosing property:member_of ?o . ?o rdf:type ontology:facility }
[]
facility
Q49738
SYSTEM
German Academy of Sciences at Berlin
Q49738
(Q1388789,P463,c(Q13226383))
action filter_type
action find
entity Q1388789
relation P463
type Q13226383
[ANSWER] was Alfred Kosing a member of
['Q1388789', 'P463', {'concept': 'Q13226383'}]
SELECT DISTINCT ?o WHERE { resource:Q1388789 property:P463 ?o . ?o rdf:type ontology:Q13226383 }
German Academy of Sciences at Berlin
German Academy of Sciences at Berlin was Alfred Kosing a member of
German Academy of Sciences at Berlin
action filter_type
action find
entity Alfred Kosing
relation member of
type facility
['Alfred Kosing', 'member of', {'concept': 'facility'}]
SELECT DISTINCT ?o WHERE { resource:Alfred_Kosing property:member_of ?o . ?o rdf:type ontology:facility }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1388789
P102
Q7278
USER
Which political party is that person a member of ?
(Q49738,P102,c(Q7278))
action filter_type
action find
entity Q1388789
relation P102
type Q7278
['Q49738', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?l WHERE { resource:Q1388789 property:P102 ?l . ?l rdf:type ontology:Q7278 }
Alfred Kosing
action filter_type
action find
entity Alfred Kosing
relation member of political party
type political party
['German Academy of Sciences at Berlin', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?l WHERE { resource:Alfred_Kosing property:member_of_political_party ?l . ?l rdf:type ontology:political_party }
[]
political party
Q49750
SYSTEM
Socialist Unity Party of Germany
Q49750
(Q49738,P102,c(Q7278))
action filter_type
action find
entity Q1388789
relation P102
type Q7278
The [ANSWER] is that person a member of
['Q49738', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?l WHERE { resource:Q1388789 property:P102 ?l . ?l rdf:type ontology:Q7278 }
Socialist Unity Party of Germany
The Socialist Unity Party of Germany is that person a member of
Socialist Unity Party of Germany
action filter_type
action find
entity Alfred Kosing
relation member of political party
type political party
['German Academy of Sciences at Berlin', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?l WHERE { resource:Alfred_Kosing property:member_of_political_party ?l . ?l rdf:type ontology:political_party }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q642058 Q1388789
P27
Q1048835
USER
Which political territories are Alfred Kosing or Marc Ryan a civilian of ?
OR((Q1388789,P27,c(Q1048835)), (Q642058,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1388789
relation P27
action find
entity Q642058
relation P27
type Q1048835
{'OR': [['Q1388789', 'P27', {'concept': 'Q1048835'}], ['Q642058', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1388789 property:P27 ?b } UNION { resource:Q642058 property:P27 ?b } } . ?b rdf:type ontology:Q1048835 }
Marc Ryan Alfred Kosing
action filter_type
action union
action find
entity Alfred Kosing
relation country of citizenship
action find
entity Marc Ryan
relation country of citizenship
type political territorial entity
{'OR': [['Alfred Kosing', 'country of citizenship', {'concept': 'political territorial entity'}], ['Marc Ryan', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Alfred_Kosing property:country_of_citizenship ?b } UNION { resource:Marc_Ryan property:country_of_citizenship ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664 Q183
SYSTEM
New Zealand, Germany
Q664 Q183
OR((Q1388789,P27,c(Q1048835)), (Q642058,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1388789
relation P27
action find
entity Q642058
relation P27
type Q1048835
[ANSWERS] are Alfred Kosing or Marc Ryan a civilian of
{'OR': [['Q1388789', 'P27', {'concept': 'Q1048835'}], ['Q642058', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1388789 property:P27 ?b } UNION { resource:Q642058 property:P27 ?b } } . ?b rdf:type ontology:Q1048835 }
New Zealand Germany
New Zealand and Germany are Alfred Kosing or Marc Ryan a civilian of
New Zealand Germany
action filter_type
action union
action find
entity Alfred Kosing
relation country of citizenship
action find
entity Marc Ryan
relation country of citizenship
type political territorial entity
{'OR': [['Alfred Kosing', 'country of citizenship', {'concept': 'political territorial entity'}], ['Marc Ryan', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Alfred_Kosing property:country_of_citizenship ?b } UNION { resource:Marc_Ryan property:country_of_citizenship ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories are known to have diplomatic connections with atmost 3 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?b ) WHERE { ?k property:P530 ?t . ?t rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1048835 } GROUP BY ?k } . FILTER ( ?b <= 3 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?b ) WHERE { ?k property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?k } . FILTER ( ?b <= 3 ) }
[]
political territorial entity political territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?b ) WHERE { ?k property:P530 ?t . ?t rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1048835 } GROUP BY ?k } . FILTER ( ?b <= 3 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?b ) WHERE { ?k property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?k } . FILTER ( ?b <= 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P6
Q502895
USER
Which people have Germany as their heads of government ?
(Q183,P6,c(Q502895))
action filter_type
action find
entity Q183
relation P6
type Q502895
['Q183', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q183 property:P6 ?e . ?e rdf:type ontology:Q502895 }
Germany
action filter_type
action find
entity Germany
relation head of government
type common name
['Germany', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Germany property:head_of_government ?e . ?e rdf:type ontology:common_name }
[]
common name
Q2492 Q2514 Q567
SYSTEM
Konrad Adenauer, Willy Brandt, Angela Merkel
Q2492 Q2518 Q2530 Q2496 Q2514 Q2516 Q2571 Q2512 Q567
(Q183,P6,c(Q502895))
action filter_type
action find
entity Q183
relation P6
type Q502895
Germany [ANSWERS] have Germany as their heads of government
['Q183', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q183 property:P6 ?e . ?e rdf:type ontology:Q502895 }
Konrad Adenauer Helmut Kohl Gerhard Schröder Ludwig Erhard Willy Brandt Helmut Schmidt Walter Scheel Kurt Georg Kiesinger Angela Merkel
Germany Konrad Adenauer, Willy Brandt and Angela Merkel have Germany as their heads of government
Konrad Adenauer Willy Brandt Angela Merkel
action filter_type
action find
entity Germany
relation head of government
type common name
['Germany', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Germany property:head_of_government ?e . ?e rdf:type ontology:common_name }
[]