Simple Question (Direct)
Simple Question
Q574052
P20
Q56061
USER
Which administrative territory is the place of death of Tony Terlazzo ?
(Q574052,P20,c(Q56061))
action filter_type
action find
entity Q574052
relation P20
type Q56061
['Q574052', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q574052 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Tony Terlazzo
action filter_type
action find
entity Tony Terlazzo
relation place of death
type administrative territorial entity
['Tony Terlazzo', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Tony_Terlazzo property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65
SYSTEM
Los Angeles
Q65
(Q574052,P20,c(Q56061))
action filter_type
action find
entity Q574052
relation P20
type Q56061
[ANSWER] is the place of death of Tony Terlazzo
['Q574052', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q574052 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Los Angeles
Los Angeles is the place of death of Tony Terlazzo
Los Angeles
action filter_type
action find
entity Tony Terlazzo
relation place of death
type administrative territorial entity
['Tony Terlazzo', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Tony_Terlazzo property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q574052
P106
Q151885
USER
Which concept has that person as his/her 's career ?
(Q65,P106,c(Q151885))
action filter_type
action find
entity Q574052
relation P106
type Q151885
['Q65', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?j WHERE { resource:Q574052 property:P106 ?j . ?j rdf:type ontology:Q151885 }
Tony Terlazzo
action filter_type
action find
entity Tony Terlazzo
relation occupation
type concept
['Los Angeles', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?j WHERE { resource:Tony_Terlazzo property:occupation ?j . ?j rdf:type ontology:concept }
[]
concept
Q13381376
SYSTEM
weightlifter
Q13381376
(Q65,P106,c(Q151885))
action filter_type
action find
entity Q574052
relation P106
type Q151885
Record [ANSWER] has that person as his/her 's career
['Q65', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?j WHERE { resource:Q574052 property:P106 ?j . ?j rdf:type ontology:Q151885 }
weightlifter
Record weightlifter has that person as his/her 's career
weightlifter
action filter_type
action find
entity Tony Terlazzo
relation occupation
type concept
['Los Angeles', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?j WHERE { resource:Tony_Terlazzo property:occupation ?j . ?j rdf:type ontology:concept }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q13381376 Q327219
P106
Q502895
USER
Does Boris Selitsky have the profession as that concept ?
(Q327219,P106,Q13381376)
action is_in
entity Q13381376
action find
entity Q327219
relation P106
['Q327219', 'P106', 'Q13381376']
ASK WHERE { resource:Q327219 property:P106 resource:Q13381376 }
weightlifter Boris Selitsky
action is_in
entity weightlifter
action find
entity Boris Selitsky
relation occupation
['Boris Selitsky', 'occupation', 'weightlifter']
ASK WHERE { resource:Boris_Selitsky property:occupation resource:weightlifter }
[]
common name
SYSTEM
YES
(Q327219,P106,Q13381376)
action is_in
entity Q13381376
action find
entity Q327219
relation P106
[ANSWER]
['Q327219', 'P106', 'Q13381376']
ASK WHERE { resource:Q327219 property:P106 resource:Q13381376 }
Yes
action is_in
entity weightlifter
action find
entity Boris Selitsky
relation occupation
['Boris Selitsky', 'occupation', 'weightlifter']
ASK WHERE { resource:Boris_Selitsky property:occupation resource:weightlifter }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q574052 Q38 Q5580833
P27
Q15617994
USER
Is Tony Terlazzo a citizen of Italy and Gollawater ?
(Q574052,P27,Q38) (Q574052,P27,Q5580833)
action is_in
entity Q574052
action intersection
action find_reverse
entity Q38
relation P27
action find_reverse
entity Q5580833
relation P27
['Q574052', 'P27', 'Q38'] ['Q574052', 'P27', 'Q5580833']
ASK WHERE { resource:Q574052 property:P27 resource:Q38 . resource:Q574052 property:P27 resource:Q5580833 }
Tony Terlazzo Italy Gollawater
action is_in
entity Tony Terlazzo
action intersection
action find_reverse
entity Italy
relation country of citizenship
action find_reverse
entity Gollawater
relation country of citizenship
['Tony Terlazzo', 'country of citizenship', 'Italy'] ['Tony Terlazzo', 'country of citizenship', 'Gollawater']
ASK WHERE { resource:Tony_Terlazzo property:country_of_citizenship resource:Italy . resource:Tony_Terlazzo property:country_of_citizenship resource:Gollawater }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q574052,P27,Q38) (Q574052,P27,Q5580833)
action is_in
entity Q574052
action intersection
action find_reverse
entity Q38
relation P27
action find_reverse
entity Q5580833
relation P27
[ANSWER]
['Q574052', 'P27', 'Q38'] ['Q574052', 'P27', 'Q5580833']
ASK WHERE { resource:Q574052 property:P27 resource:Q38 . resource:Q574052 property:P27 resource:Q5580833 }
YES and NO respectively
action is_in
entity Tony Terlazzo
action intersection
action find_reverse
entity Italy
relation country of citizenship
action find_reverse
entity Gollawater
relation country of citizenship
['Tony Terlazzo', 'country of citizenship', 'Italy'] ['Tony Terlazzo', 'country of citizenship', 'Gollawater']
ASK WHERE { resource:Tony_Terlazzo property:country_of_citizenship resource:Italy . resource:Tony_Terlazzo property:country_of_citizenship resource:Gollawater }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P706
Q1048835 Q151885
USER
Which political territories are the location where min number of concepts are located ?
(c(Q151885),P706,Q25228)
action argmin
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q151885
[{'concept': 'Q151885'}, 'P706', 'Q25228']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?a ) { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:P706 ?w . ?w rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q151885 } GROUP BY ?w } } . FILTER ( ?i = ?a ) . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?i ) WHERE { ?p property:P706 ?d . ?d rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q151885 } GROUP BY ?d } }
action argmin
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Anguilla']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?a ) { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:located_on_terrain_feature ?w . ?w rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:concept } GROUP BY ?w } } . FILTER ( ?i = ?a ) . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?i ) WHERE { ?p property:located_on_terrain_feature ?d . ?d rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:concept } GROUP BY ?d } }
[]
political territorial entity concept
Q40 Q5705 Q785
SYSTEM
Austria, Catalonia, Jersey
Q2012050 Q1747689 Q188399 Q785 Q47134 Q13769 Q202023 Q9676 Q10557 Q5705 Q15434 Q7166 Q5783 Q168159 Q80967 Q11266977 Q109128 Q190930 Q100166 Q234 Q40 Q3908 Q23635 Q25228
(c(Q151885),P706,Q25228)
action argmin
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q151885
[ANSWERS] are the location where min number of concepts are located
[{'concept': 'Q151885'}, 'P706', 'Q25228']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?a ) { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:P706 ?w . ?w rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q151885 } GROUP BY ?w } } . FILTER ( ?i = ?a ) . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?i ) WHERE { ?p property:P706 ?d . ?d rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q151885 } GROUP BY ?d } }
Donetsk Oblast Ancient Rome Central Bohemian Region Jersey Shetland Camiguin Herm Isle of Man Swabia Catalonia Montseny Heilbronn Andalusia Anglesey Outer Hebrides Epirus Gwynedd Vysočina Region Orkney Islands Flemish Region Austria Galicia Bermuda Anguilla
Austria, Catalonia and Jersey are the location where min number of concepts are located
Austria Catalonia Jersey
action argmin
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Anguilla']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?a ) { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:located_on_terrain_feature ?w . ?w rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:concept } GROUP BY ?w } } . FILTER ( ?i = ?a ) . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?i ) WHERE { ?p property:located_on_terrain_feature ?d . ?d rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:concept } GROUP BY ?d } }
[]