Simple Question (Direct)
Simple Question
Q89246
P21
Q290
USER
What is the sex of Joseph von Laßberg ?
(Q89246,P21,c(Q290))
action filter_type
action find
entity Q89246
relation P21
type Q290
['Q89246', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q89246 property:P21 ?o . ?o rdf:type ontology:Q290 }
Joseph von Laßberg
action filter_type
action find
entity Joseph von Laßberg
relation gender
type sex
['Joseph von Laßberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Joseph_von_Laßberg property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q89246,P21,c(Q290))
action filter_type
action find
entity Q89246
relation P21
type Q290
The sex of Joseph von Laßberg is the [ANSWER]
['Q89246', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q89246 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
The sex of Joseph von Laßberg is the male
male
action filter_type
action find
entity Joseph von Laßberg
relation gender
type sex
['Joseph von Laßberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Joseph_von_Laßberg property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q89246
P106
Q12737077
USER
Which occupation is the profession of Joseph von Laßberg ?
(Q89246,P106,c(Q12737077))
action filter_type
action find
entity Q89246
relation P106
type Q12737077
['Q89246', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q89246 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Joseph von Laßberg
action filter_type
action find
entity Joseph von Laßberg
relation occupation
type occupation
['Joseph von Laßberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Joseph_von_Laßberg property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
(Q89246,P106,c(Q12737077))
action filter_type
action find
entity Q89246
relation P106
type Q12737077
The [ANSWER] is the profession of Joseph von Laßberg
['Q89246', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q89246 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
writer
The writer is the profession of Joseph von Laßberg
writer
action filter_type
action find
entity Joseph von Laßberg
relation occupation
type occupation
['Joseph von Laßberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Joseph_von_Laßberg property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q36180 Q4440804
P106
Q502895
USER
Does Aleksandr Startsev have career as that occupation ?
(Q4440804,P106,Q36180)
action is_in
entity Q36180
action find
entity Q4440804
relation P106
['Q4440804', 'P106', 'Q36180']
ASK WHERE { resource:Q4440804 property:P106 resource:Q36180 }
writer Aleksandr Startsev
action is_in
entity writer
action find
entity Aleksandr Startsev
relation occupation
['Aleksandr Startsev', 'occupation', 'writer']
ASK WHERE { resource:Aleksandr_Startsev property:occupation resource:writer }
[]
common name
SYSTEM
YES
(Q4440804,P106,Q36180)
action is_in
entity Q36180
action find
entity Q4440804
relation P106
[ANSWER]
['Q4440804', 'P106', 'Q36180']
ASK WHERE { resource:Q4440804 property:P106 resource:Q36180 }
Yes
action is_in
entity writer
action find
entity Aleksandr Startsev
relation occupation
['Aleksandr Startsev', 'occupation', 'writer']
ASK WHERE { resource:Aleksandr_Startsev property:occupation resource:writer }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q36180
P106
Q15707583 Q15619164
USER
How many fictional taxons or abstract beings have the profession as writer ?
(c(Q15707583),P106,Q36180) (c(Q15619164),P106,Q36180)
action count
action union
action filter_type
action find_reverse
entity Q36180
relation P106
type Q15707583
action filter_type
action find_reverse
entity Q36180
relation P106
type Q15619164
[{'concept': 'Q15707583'}, 'P106', 'Q36180'] [{'concept': 'Q15619164'}, 'P106', 'Q36180']
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { ?w property:P106 resource:Q36180 . ?w rdf:type ontology:Q15619164 } UNION { ?w property:P106 resource:Q36180 . ?w rdf:type ontology:Q15707583 } }
writer
action count
action union
action filter_type
action find_reverse
entity writer
relation occupation
type fictional taxon
action filter_type
action find_reverse
entity writer
relation occupation
type abstract being
[{'concept': 'fictional taxon'}, 'occupation', 'writer'] [{'concept': 'abstract being'}, 'occupation', 'writer']
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { ?w property:occupation resource:writer . ?w rdf:type ontology:abstract_being } UNION { ?w property:occupation resource:writer . ?w rdf:type ontology:fictional_taxon } }
[]
fictional taxon abstract being
SYSTEM
9
Q18039973 Q2075097 Q8704 Q764950 Q586362 Q21010056 Q4772603 Q212727 Q458346
(c(Q15707583),P106,Q36180) (c(Q15619164),P106,Q36180)
action count
action union
action filter_type
action find_reverse
entity Q36180
relation P106
type Q15707583
action filter_type
action find_reverse
entity Q36180
relation P106
type Q15619164
[ANSWER]
[{'concept': 'Q15707583'}, 'P106', 'Q36180'] [{'concept': 'Q15619164'}, 'P106', 'Q36180']
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { ?w property:P106 resource:Q36180 . ?w rdf:type ontology:Q15619164 } UNION { ?w property:P106 resource:Q36180 . ?w rdf:type ontology:Q15707583 } }
Amélie Nothomb Peter Garski Walt Disney Richard Castle Ellery Queen Alan Wake Anthony Godby Johnson Rick Riordan Lemony Snicket
9
action count
action union
action filter_type
action find_reverse
entity writer
relation occupation
type fictional taxon
action filter_type
action find_reverse
entity writer
relation occupation
type abstract being
[{'concept': 'fictional taxon'}, 'occupation', 'writer'] [{'concept': 'abstract being'}, 'occupation', 'writer']
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { ?w property:occupation resource:writer . ?w rdf:type ontology:abstract_being } UNION { ?w property:occupation resource:writer . ?w rdf:type ontology:fictional_taxon } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q89246
P27
Q1048835
USER
Which political territory is Joseph von Laßberg a civilian of ?
(Q89246,P27,c(Q1048835))
action filter_type
action find
entity Q89246
relation P27
type Q1048835
['Q89246', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1048835 . resource:Q89246 property:P27 ?a }
Joseph von Laßberg
action filter_type
action find
entity Joseph von Laßberg
relation country of citizenship
type political territorial entity
['Joseph von Laßberg', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Joseph_von_Laßberg property:country_of_citizenship ?a }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q89246,P27,c(Q1048835))
action filter_type
action find
entity Q89246
relation P27
type Q1048835
[ANSWER] is Joseph von Laßberg a civilian of
['Q89246', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1048835 . resource:Q89246 property:P27 ?a }
Germany
Germany is Joseph von Laßberg a civilian of
Germany
action filter_type
action find
entity Joseph von Laßberg
relation country of citizenship
type political territorial entity
['Joseph von Laßberg', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Joseph_von_Laßberg property:country_of_citizenship ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q89246
P937
Q56061
USER
What is the work location of that person ?
(Q183,P937,c(Q56061))
action filter_type
action find
entity Q89246
relation P937
type Q56061
['Q183', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q89246 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Joseph von Laßberg
action filter_type
action find
entity Joseph von Laßberg
relation work location
type administrative territorial entity
['Germany', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Joseph_von_Laßberg property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q83062
SYSTEM
Donaueschingen
Q83062
(Q183,P937,c(Q56061))
action filter_type
action find
entity Q89246
relation P937
type Q56061
The work location of that person is in [ANSWER]
['Q183', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q89246 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Donaueschingen
The work location of that person is in Donaueschingen
Donaueschingen
action filter_type
action find
entity Joseph von Laßberg
relation work location
type administrative territorial entity
['Germany', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Joseph_von_Laßberg property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P30
Q2221906 Q56061
USER
Which administrative territories are a part of around the same number of geographic locations as that administrative territory ?
(c(Q56061),P30,c(Q2221906))
action approx
action find_tuple_counts
relation P30
type Q56061
type Q2221906
action count
action filter_type
action find
entity Q83062
relation P30
type Q56061
[{'concept': 'Q56061'}, 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?l ) WHERE { ?b property:P30 ?a . ?b rdf:type ontology:Q56061 . ?a rdf:type ontology:Q2221906 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { resource:Q83062 property:P30 ?e . ?e rdf:type ontology:Q56061 } } . FILTER ( ?l = ?n ) }
action approx
action find_tuple_counts
relation continent
type administrative territorial entity
type geographic location
action count
action filter_type
action find
entity Donaueschingen
relation continent
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?l ) WHERE { ?b property:continent ?a . ?b rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:geographic_location } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { resource:Donaueschingen property:continent ?e . ?e rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?l = ?n ) }
[]
geographic location administrative territorial entity
Q406 Q7172 Q95449
SYSTEM
Istanbul, Arab League, Magnitogorsk
Q95449 Q23869182 Q7172 Q406 Q16869
(c(Q56061),P30,c(Q2221906))
action approx
action find_tuple_counts
relation P30
type Q56061
type Q2221906
action count
action filter_type
action find
entity Q83062
relation P30
type Q56061
[ANSWERS] are a part of around the same number of geographic locations as that administrative territory
[{'concept': 'Q56061'}, 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?l ) WHERE { ?b property:P30 ?a . ?b rdf:type ontology:Q56061 . ?a rdf:type ontology:Q2221906 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { resource:Q83062 property:P30 ?e . ?e rdf:type ontology:Q56061 } } . FILTER ( ?l = ?n ) }
Magnitogorsk Candelario Mancilla Arab League Istanbul Constantinople
Istanbul, Arab League and Magnitogorsk are a part of around the same number of geographic locations as that administrative territory
Istanbul Arab League Magnitogorsk
action approx
action find_tuple_counts
relation continent
type administrative territorial entity
type geographic location
action count
action filter_type
action find
entity Donaueschingen
relation continent
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?l ) WHERE { ?b property:continent ?a . ?b rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:geographic_location } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { resource:Donaueschingen property:continent ?e . ?e rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?l = ?n ) }
[]