Simple Question (Direct)
Simple Question
Q17402881
P19
Q15617994
USER
Which administrative territory is the place of birth of Charlie Moody ?
(Q17402881,P19,c(Q15617994))
action filter_type
action find
entity Q17402881
relation P19
type Q15617994
['Q17402881', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q17402881 property:P19 ?u . ?u rdf:type ontology:Q15617994 }
Charlie Moody
action filter_type
action find
entity Charlie Moody
relation place of birth
type designation for an administrative territorial entity
['Charlie Moody', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Charlie_Moody property:place_of_birth ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q17402881,P19,c(Q15617994))
action filter_type
action find
entity Q17402881
relation P19
type Q15617994
In [ANSWER] is the place of birth of Charlie Moody
['Q17402881', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q17402881 property:P19 ?u . ?u rdf:type ontology:Q15617994 }
United Kingdom
In United Kingdom is the place of birth of Charlie Moody
United Kingdom
action filter_type
action find
entity Charlie Moody
relation place of birth
type designation for an administrative territorial entity
['Charlie Moody', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Charlie_Moody property:place_of_birth ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17402881
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q145,P27,c(Q15617994))
action filter_type
action find
entity Q17402881
relation P27
type Q15617994
['Q145', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q17402881 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Charlie Moody
action filter_type
action find
entity Charlie Moody
relation country of citizenship
type designation for an administrative territorial entity
['United Kingdom', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Charlie_Moody property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q145,P27,c(Q15617994))
action filter_type
action find
entity Q17402881
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q145', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q17402881 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the country of citizenship of that person
United Kingdom
action filter_type
action find
entity Charlie Moody
relation country of citizenship
type designation for an administrative territorial entity
['United Kingdom', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Charlie_Moody property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q145 Q1817742
P937
Q502895
USER
How many people works at United Kingdom or National Academy of Arts ?
(c(Q502895),P937,Q145) (c(Q502895),P937,Q1817742)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P937
type Q502895
action filter_type
action find_reverse
entity Q1817742
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q145'] [{'concept': 'Q502895'}, 'P937', 'Q1817742']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:P937 ?m . VALUES ( ?m ) { ( resource:Q145 ) ( resource:Q1817742 ) } }
United Kingdom National Academy of Arts
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation work location
type common name
action filter_type
action find_reverse
entity National Academy of Arts
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'United Kingdom'] [{'concept': 'common name'}, 'work location', 'National Academy of Arts']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:work_location ?m . VALUES ( ?m ) { ( resource:United_Kingdom ) ( resource:National_Academy_of_Arts ) } }
[]
common name
SYSTEM
3
Q20747363 Q24190535 Q4252937
(c(Q502895),P937,Q145) (c(Q502895),P937,Q1817742)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P937
type Q502895
action filter_type
action find_reverse
entity Q1817742
relation P937
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q145'] [{'concept': 'Q502895'}, 'P937', 'Q1817742']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:P937 ?m . VALUES ( ?m ) { ( resource:Q145 ) ( resource:Q1817742 ) } }
Cecilia Sternberg Mungo Ballardie MacCallum Ivan Lazarov
3
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation work location
type common name
action filter_type
action find_reverse
entity National Academy of Arts
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'United Kingdom'] [{'concept': 'common name'}, 'work location', 'National Academy of Arts']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:work_location ?m . VALUES ( ?m ) { ( resource:United_Kingdom ) ( resource:National_Academy_of_Arts ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1732723 Q145
P530 P27
Q1048835
USER
Which political territories have diplomatic relations with United Kingdom or are Karl Robl an inhabitant of ?
OR((Q145,P530,c(Q1048835)), (Q1732723,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q145
relation P530
action find
entity Q1732723
relation P27
type Q1048835
{'OR': [['Q145', 'P530', {'concept': 'Q1048835'}], ['Q1732723', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1048835 . { { resource:Q145 property:P530 ?y } UNION { resource:Q1732723 property:P27 ?y } } }
Karl Robl United Kingdom
action filter_type
action union
action find
entity United Kingdom
relation diplomatic relation
action find
entity Karl Robl
relation country of citizenship
type political territorial entity
{'OR': [['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Karl Robl', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_territorial_entity . { { resource:United_Kingdom property:diplomatic_relation ?y } UNION { resource:Karl_Robl property:country_of_citizenship ?y } } }
[]
political territorial entity
Q408 Q16 Q183
SYSTEM
Australia, Canada, Germany
Q408 Q16 Q183
OR((Q145,P530,c(Q1048835)), (Q1732723,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q145
relation P530
action find
entity Q1732723
relation P27
type Q1048835
[ANSWERS] have diplomatic relations with United Kingdom or are Karl Robl an inhabitant of
{'OR': [['Q145', 'P530', {'concept': 'Q1048835'}], ['Q1732723', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1048835 . { { resource:Q145 property:P530 ?y } UNION { resource:Q1732723 property:P27 ?y } } }
Australia Canada Germany
Australia, Canada and Germany have diplomatic relations with United Kingdom or are Karl Robl an inhabitant of
Australia Canada Germany
action filter_type
action union
action find
entity United Kingdom
relation diplomatic relation
action find
entity Karl Robl
relation country of citizenship
type political territorial entity
{'OR': [['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Karl Robl', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:political_territorial_entity . { { resource:United_Kingdom property:diplomatic_relation ?y } UNION { resource:Karl_Robl property:country_of_citizenship ?y } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q15617994 Q20667921 Q515
USER
How many administrative territories have around 3 french administrative divisions and cities have their first city ?
(c(Q20667921)|c(Q515),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
value 3
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?i ) WHERE { VALUES ( ?y ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?e rdf:type ?y } GROUP BY ?q } . FILTER ( ?i = 3 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
value 3
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?i ) WHERE { VALUES ( ?y ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?e rdf:type ?y } GROUP BY ?q } . FILTER ( ?i = 3 ) }
[]
designation for an administrative territorial entity type of french administrative division city
SYSTEM
2
Q12703 Q12569
(c(Q20667921)|c(Q515),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
value 3
[ANSWER]
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?i ) WHERE { VALUES ( ?y ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?e rdf:type ?y } GROUP BY ?q } . FILTER ( ?i = 3 ) }
Pyrénées-Atlantiques Loire
2
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
value 3
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?i ) WHERE { VALUES ( ?y ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?e rdf:type ?y } GROUP BY ?q } . FILTER ( ?i = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5541630
P69
Q1935049
USER
Which military school is the alma mater of George Lee Butler ?
(Q5541630,P69,c(Q1935049))
action filter_type
action find
entity Q5541630
relation P69
type Q1935049
['Q5541630', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?i WHERE { resource:Q5541630 property:P69 ?i . ?i rdf:type ontology:Q1935049 }
George Lee Butler
action filter_type
action find
entity George Lee Butler
relation educated at
type military school
['George Lee Butler', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?i WHERE { resource:George_Lee_Butler property:educated_at ?i . ?i rdf:type ontology:military_school }
[]
military school
Q1331280
SYSTEM
United States Air Force Academy
Q1331280
(Q5541630,P69,c(Q1935049))
action filter_type
action find
entity Q5541630
relation P69
type Q1935049
[ANSWER] is the alma mater of George Lee Butler
['Q5541630', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?i WHERE { resource:Q5541630 property:P69 ?i . ?i rdf:type ontology:Q1935049 }
United States Air Force Academy
United States Air Force Academy is the alma mater of George Lee Butler
United States Air Force Academy
action filter_type
action find
entity George Lee Butler
relation educated at
type military school
['George Lee Butler', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?i WHERE { resource:George_Lee_Butler property:educated_at ?i . ?i rdf:type ontology:military_school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P740
Q502895
USER
What are the people that were formed at Australia ?
(c(Q502895),P740,Q408)
action filter_type
action find_reverse
entity Q408
relation P740
type Q502895
[{'concept': 'Q502895'}, 'P740', 'Q408']
SELECT DISTINCT ?i WHERE { ?i property:P740 resource:Q408 . ?i rdf:type ontology:Q502895 }
Australia
action filter_type
action find_reverse
entity Australia
relation location of formation
type common name
[{'concept': 'common name'}, 'location of formation', 'Australia']
SELECT DISTINCT ?i WHERE { ?i property:location_of_formation resource:Australia . ?i rdf:type ontology:common_name }
[]
common name
Q40580 Q13035839
SYSTEM
Lisa Gerrard, Pogo
Q40580 Q13035839
(c(Q502895),P740,Q408)
action filter_type
action find_reverse
entity Q408
relation P740
type Q502895
The people that were formed at Australia are [ANSWERS]
[{'concept': 'Q502895'}, 'P740', 'Q408']
SELECT DISTINCT ?i WHERE { ?i property:P740 resource:Q408 . ?i rdf:type ontology:Q502895 }
Lisa Gerrard Pogo
The people that were formed at Australia are Lisa Gerrard and Pogo
Lisa Gerrard Pogo
action filter_type
action find_reverse
entity Australia
relation location of formation
type common name
[{'concept': 'common name'}, 'location of formation', 'Australia']
SELECT DISTINCT ?i WHERE { ?i property:location_of_formation resource:Australia . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q40580 Q13035839
P21
Q290
USER
Which sexes do those people belong to ?
(Q40580,P21,c(Q290)) (Q13035839,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q40580', 'P21', {'concept': 'Q290'}] ['Q13035839', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . ?i property:P21 ?q . VALUES ( ?i ) { ( resource:Q40580 ) ( resource:Q13035839 ) } }
Lisa Gerrard Pogo
action filter_type
action find
entity prev_answer
relation gender
type sex
['Lisa Gerrard', 'gender', {'concept': 'sex'}] ['Pogo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . ?i property:gender ?q . VALUES ( ?i ) { ( resource:Lisa_Gerrard ) ( resource:Pogo ) } }
[]
sex
Q6581072 Q6581097
SYSTEM
female, male
Q6581072 Q6581097
(Q40580,P21,c(Q290)) (Q13035839,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people belong to [ANSWERS]
['Q40580', 'P21', {'concept': 'Q290'}] ['Q13035839', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . ?i property:P21 ?q . VALUES ( ?i ) { ( resource:Q40580 ) ( resource:Q13035839 ) } }
female male
Those people belong to female and male
female male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Lisa Gerrard', 'gender', {'concept': 'sex'}] ['Pogo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . ?i property:gender ?q . VALUES ( ?i ) { ( resource:Lisa_Gerrard ) ( resource:Pogo ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q40580
P175
Q838948
USER
Which work of art presented that person ?
(c(Q838948),P175,Q40580)
action filter_type
action find_reverse
entity Q40580
relation P175
type Q838948
[{'concept': 'Q838948'}, 'P175', 'Q40580']
SELECT DISTINCT ?q WHERE { ?q property:P175 resource:Q40580 . ?q rdf:type ontology:Q838948 }
Lisa Gerrard
action filter_type
action find_reverse
entity Lisa Gerrard
relation performer
type work of art
[{'concept': 'work of art'}, 'performer', 'Lisa Gerrard']
SELECT DISTINCT ?q WHERE { ?q property:performer resource:Lisa_Gerrard . ?q rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q40580
SYSTEM
Did you mean Lisa Gerrard ?
Q6581072 Q6581097
(c(Q838948),P175,Q6581072) (c(Q838948),P175,Q6581097)
[ANSWER]
[{'concept': 'Q838948'}, 'P175', 'Q6581072'] [{'concept': 'Q838948'}, 'P175', 'Q6581097']
SELECT DISTINCT ?q WHERE { ?q property:P175 resource:Q40580 . ?q rdf:type ontology:Q838948 }
female male
Did you mean Lisa Gerrard ?
Lisa Gerrard
[{'concept': 'work of art'}, 'performer', 'female'] [{'concept': 'work of art'}, 'performer', 'male']
SELECT DISTINCT ?q WHERE { ?q property:performer resource:Lisa_Gerrard . ?q rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q838948),P175,Q40580)
[{'concept': 'Q838948'}, 'P175', 'Q40580']
[{'concept': 'work of art'}, 'performer', 'Lisa Gerrard']
[]
Q3150366
SYSTEM
Samsara
Q3150366
(c(Q838948),P175,Q40580)
action filter_type
action find_reverse
entity Q40580
relation P175
type Q838948
[ANSWER] presented that person
[{'concept': 'Q838948'}, 'P175', 'Q40580']
SELECT DISTINCT ?q WHERE { ?q property:P175 resource:Q40580 . ?q rdf:type ontology:Q838948 }
Samsara
Samsara presented that person
Samsara
action filter_type
action find_reverse
entity Lisa Gerrard
relation performer
type work of art
[{'concept': 'work of art'}, 'performer', 'Lisa Gerrard']
SELECT DISTINCT ?q WHERE { ?q property:performer resource:Lisa_Gerrard . ?q rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3150366
P136
Q1792379
USER
What can be considered as category for that work of art ?
(Q3150366,P136,c(Q1792379))
action filter_type
action find
entity Q3150366
relation P136
type Q1792379
['Q3150366', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?y WHERE { resource:Q3150366 property:P136 ?y . ?y rdf:type ontology:Q1792379 }
Samsara
action filter_type
action find
entity Samsara
relation genre
type art genre
['Samsara', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?y WHERE { resource:Samsara property:genre ?y . ?y rdf:type ontology:art_genre }
[]
art genre
Q93204
SYSTEM
documentary film
Q93204
(Q3150366,P136,c(Q1792379))
action filter_type
action find
entity Q3150366
relation P136
type Q1792379
[ANSWER] can be considered as category for that work of art
['Q3150366', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?y WHERE { resource:Q3150366 property:P136 ?y . ?y rdf:type ontology:Q1792379 }
documentary film
Documentary film can be considered as category for that work of art
documentary film
action filter_type
action find
entity Samsara
relation genre
type art genre
['Samsara', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?y WHERE { resource:Samsara property:genre ?y . ?y rdf:type ontology:art_genre }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q93204 Q3482565
P136
Q838948
USER
Does Shouting Fire: Stories from the Edge of Free Speech a that art genre as its type ?
(Q3482565,P136,Q93204)
action is_in
entity Q93204
action find
entity Q3482565
relation P136
['Q3482565', 'P136', 'Q93204']
ASK WHERE { resource:Q3482565 property:P136 resource:Q93204 }
documentary film Shouting Fire: Stories from the Edge of Free Speech
action is_in
entity documentary film
action find
entity Shouting Fire: Stories from the Edge of Free Speech
relation genre
['Shouting Fire: Stories from the Edge of Free Speech', 'genre', 'documentary film']
ASK WHERE { resource:Shouting_Fire:_Stories_from_the_Edge_of_Free_Speech property:genre resource:documentary_film }
[]
work of art
SYSTEM
YES
(Q3482565,P136,Q93204)
action is_in
entity Q93204
action find
entity Q3482565
relation P136
[ANSWER]
['Q3482565', 'P136', 'Q93204']
ASK WHERE { resource:Q3482565 property:P136 resource:Q93204 }
Yes
action is_in
entity documentary film
action find
entity Shouting Fire: Stories from the Edge of Free Speech
relation genre
['Shouting Fire: Stories from the Edge of Free Speech', 'genre', 'documentary film']
ASK WHERE { resource:Shouting_Fire:_Stories_from_the_Edge_of_Free_Speech property:genre resource:documentary_film }
[]