Simple Question (Direct)
Simple Question
Q21289234
P21
Q290
USER
What is the sex of Johann Michael Baader ?
(Q21289234,P21,c(Q290))
action filter_type
action find
entity Q21289234
relation P21
type Q290
['Q21289234', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q21289234 property:P21 ?n . ?n rdf:type ontology:Q290 }
Johann Michael Baader
action filter_type
action find
entity Johann Michael Baader
relation gender
type sex
['Johann Michael Baader', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Johann_Michael_Baader property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q21289234,P21,c(Q290))
action filter_type
action find
entity Q21289234
relation P21
type Q290
The sex of Johann Michael Baader is the [ANSWER]
['Q21289234', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q21289234 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
The sex of Johann Michael Baader is the male
male
action filter_type
action find
entity Johann Michael Baader
relation gender
type sex
['Johann Michael Baader', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Johann_Michael_Baader property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21289234
P27
Q1048835
USER
Which political territory is that person an inhabitant of ?
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q21289234
relation P27
type Q1048835
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q21289234 property:P27 ?g . ?g rdf:type ontology:Q1048835 }
Johann Michael Baader
action filter_type
action find
entity Johann Michael Baader
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Johann_Michael_Baader property:country_of_citizenship ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q21289234
relation P27
type Q1048835
[ANSWER] is that person an inhabitant of
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q21289234 property:P27 ?g . ?g rdf:type ontology:Q1048835 }
Germany
Germany is that person an inhabitant of
Germany
action filter_type
action find
entity Johann Michael Baader
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Johann_Michael_Baader property:country_of_citizenship ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories holds diplomatic relationship with max number of political territories ?
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?a ) { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?o ) WHERE { ?v property:P530 ?t . ?v rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?v } } . FILTER ( ?e = ?a ) . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?e ) WHERE { ?s property:P530 ?l . ?s rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 } GROUP BY ?s } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?a ) { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?o ) WHERE { ?v property:diplomatic_relation ?t . ?v rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?v } } . FILTER ( ?e = ?a ) . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?e ) WHERE { ?s property:diplomatic_relation ?l . ?s rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWER] holds diplomatic relationship with max number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?a ) { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?o ) WHERE { ?v property:P530 ?t . ?v rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } GROUP BY ?v } } . FILTER ( ?e = ?a ) . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?e ) WHERE { ?s property:P530 ?l . ?s rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 } GROUP BY ?s } }
Australia
Australia holds diplomatic relationship with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?a ) { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?o ) WHERE { ?v property:diplomatic_relation ?t . ?v rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?v } } . FILTER ( ?e = ?a ) . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?e ) WHERE { ?s property:diplomatic_relation ?l . ?s rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q408 Q697
P530
Q15617994
USER
Does Nauru have a diplomatic relationship with that political territory ?
(Q408,P530,Q697)
action is_in
entity Q697
action find
entity Q408
relation P530
['Q408', 'P530', 'Q697']
ASK WHERE { resource:Q408 property:P530 resource:Q697 }
Australia Nauru
action is_in
entity Nauru
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Nauru']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Nauru }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q408,P530,Q697)
action is_in
entity Q697
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q697']
ASK WHERE { resource:Q408 property:P530 resource:Q697 }
Yes
action is_in
entity Nauru
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Nauru']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Nauru }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q16957
P1532
Q502895
USER
How many people play for Germany and East Germany ?
(c(Q502895),P1532,Q183) (c(Q502895),P1532,Q16957)
action count
action intersection
action filter_type
action find_reverse
entity Q183
relation P1532
type Q502895
action filter_type
action find_reverse
entity Q16957
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q183'] [{'concept': 'Q502895'}, 'P1532', 'Q16957']
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { ?y property:P1532 resource:Q183 . ?y rdf:type ontology:Q502895 . ?y property:P1532 resource:Q16957 . ?y rdf:type ontology:Q502895 }
Germany East Germany
action count
action intersection
action filter_type
action find_reverse
entity Germany
relation country for sport
type common name
action filter_type
action find_reverse
entity East Germany
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Germany'] [{'concept': 'common name'}, 'country for sport', 'East Germany']
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { ?y property:country_for_sport resource:Germany . ?y rdf:type ontology:common_name . ?y property:country_for_sport resource:East_Germany . ?y rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q1078224 Q1331837
(c(Q502895),P1532,Q183) (c(Q502895),P1532,Q16957)
action count
action intersection
action filter_type
action find_reverse
entity Q183
relation P1532
type Q502895
action filter_type
action find_reverse
entity Q16957
relation P1532
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1532', 'Q183'] [{'concept': 'Q502895'}, 'P1532', 'Q16957']
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { ?y property:P1532 resource:Q183 . ?y rdf:type ontology:Q502895 . ?y property:P1532 resource:Q16957 . ?y rdf:type ontology:Q502895 }
Christa Wiese Ellen Kiessling
2
action count
action intersection
action filter_type
action find_reverse
entity Germany
relation country for sport
type common name
action filter_type
action find_reverse
entity East Germany
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Germany'] [{'concept': 'common name'}, 'country for sport', 'East Germany']
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { ?y property:country_for_sport resource:Germany . ?y rdf:type ontology:common_name . ?y property:country_for_sport resource:East_Germany . ?y rdf:type ontology:common_name }
[]