Simple Question (Direct)
Simple Question
Q20089788
P27
Q15617994
USER
Which administrative territory does Nathalie Simon belong to ?
(Q20089788,P27,c(Q15617994))
action filter_type
action find
entity Q20089788
relation P27
type Q15617994
['Q20089788', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q20089788 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Nathalie Simon
action filter_type
action find
entity Nathalie Simon
relation country of citizenship
type designation for an administrative territorial entity
['Nathalie Simon', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Nathalie_Simon property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q20089788,P27,c(Q15617994))
action filter_type
action find
entity Q20089788
relation P27
type Q15617994
Nathalie Simon belongs to [ANSWER]
['Q20089788', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q20089788 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
France
Nathalie Simon belongs to France
France
action filter_type
action find
entity Nathalie Simon
relation country of citizenship
type designation for an administrative territorial entity
['Nathalie Simon', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Nathalie_Simon property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20089788
P734
Q82799
USER
Which name is associated with that person ?
(Q142,P734,c(Q82799))
action filter_type
action find
entity Q20089788
relation P734
type Q82799
['Q142', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q20089788 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Nathalie Simon
action filter_type
action find
entity Nathalie Simon
relation family name
type name
['France', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Nathalie_Simon property:family_name ?f . ?f rdf:type ontology:name }
[]
name
Q2287331
SYSTEM
Simon
Q2287331
(Q142,P734,c(Q82799))
action filter_type
action find
entity Q20089788
relation P734
type Q82799
[ANSWER] is associated with that person
['Q142', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q20089788 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Simon
Simon is associated with that person
Simon
action filter_type
action find
entity Nathalie Simon
relation family name
type name
['France', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Nathalie_Simon property:family_name ?f . ?f rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q386724 Q340169
USER
Which names are expressed in approximately 3 works or medias ?
(c(Q386724)|c(Q340169),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
value 3
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) ?v WHERE { { ?z property:P180 ?v . ?v rdf:type ontology:Q82799 . ?z rdf:type ontology:Q386724 } UNION { ?z rdf:type ontology:Q340169 . ?v rdf:type ontology:Q82799 . ?z property:P180 ?v } } GROUP BY ?v } . FILTER ( ?r = 3 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type media
value 3
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) ?v WHERE { { ?z property:depicts ?v . ?v rdf:type ontology:name . ?z rdf:type ontology:work } UNION { ?z rdf:type ontology:media . ?v rdf:type ontology:name . ?z property:depicts ?v } } GROUP BY ?v } . FILTER ( ?r = 3 ) }
[]
name work media
Q5 Q7378
SYSTEM
human, elephant
Q5 Q7378
(c(Q386724)|c(Q340169),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
value 3
[ANSWERS] are expressed in approximately 3 works or medias
[[{'concept': 'Q386724'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) ?v WHERE { { ?z property:P180 ?v . ?v rdf:type ontology:Q82799 . ?z rdf:type ontology:Q386724 } UNION { ?z rdf:type ontology:Q340169 . ?v rdf:type ontology:Q82799 . ?z property:P180 ?v } } GROUP BY ?v } . FILTER ( ?r = 3 ) }
human elephant
Human and elephant are expressed in approximately 3 works or medias
human elephant
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type media
value 3
[[{'concept': 'work'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) ?v WHERE { { ?z property:depicts ?v . ?v rdf:type ontology:name . ?z rdf:type ontology:work } UNION { ?z rdf:type ontology:media . ?v rdf:type ontology:name . ?z property:depicts ?v } } GROUP BY ?v } . FILTER ( ?r = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P530
Q15617994
USER
Which administrative territories have tactful political relations with France ?
(c(Q15617994),P530,Q142)
action filter_type
action find_reverse
entity Q142
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q142']
SELECT DISTINCT ?b WHERE { ?b property:P530 resource:Q142 . ?b rdf:type ontology:Q15617994 }
France
action filter_type
action find_reverse
entity France
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'France']
SELECT DISTINCT ?b WHERE { ?b property:diplomatic_relation resource:France . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q155 Q159
SYSTEM
Italy, Brazil, Russia
Q948 Q711 Q222 Q801 Q145 Q155 Q1011 Q27 Q225 Q228 Q32 Q17 Q399 Q929 Q403 Q159 Q38 Q184
(c(Q15617994),P530,Q142)
action filter_type
action find_reverse
entity Q142
relation P530
type Q15617994
[ANSWERS] have tactful political relations with France
[{'concept': 'Q15617994'}, 'P530', 'Q142']
SELECT DISTINCT ?b WHERE { ?b property:P530 resource:Q142 . ?b rdf:type ontology:Q15617994 }
Tunisia Mongolia Albania Israel United Kingdom Brazil Cape Verde Ireland Bosnia and Herzegovina Andorra Luxembourg Japan Armenia Central African Republic Serbia Russia Italy Belarus
Italy, Brazil and Russia have tactful political relations with France
Italy Brazil Russia
action filter_type
action find_reverse
entity France
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'France']
SELECT DISTINCT ?b WHERE { ?b property:diplomatic_relation resource:France . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q38 Q155 Q159
P163
Q14660
USER
Which flags are associated with those administrative territories ?
(Q38,P163,c(Q14660)) (Q155,P163,c(Q14660)) (Q159,P163,c(Q14660))
action filter_type
action find
entity prev_answer
relation P163
type Q14660
['Q38', 'P163', {'concept': 'Q14660'}] ['Q155', 'P163', {'concept': 'Q14660'}] ['Q159', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q14660 . VALUES ( ?q ) { ( resource:Q948 ) ( resource:Q711 ) ( resource:Q222 ) } . ?q property:P163 ?p }
Italy Brazil Russia
action filter_type
action find
entity prev_answer
relation flag
type flag
['Italy', 'flag', {'concept': 'flag'}] ['Brazil', 'flag', {'concept': 'flag'}] ['Russia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:flag . VALUES ( ?q ) { ( resource:Tunisia ) ( resource:Mongolia ) ( resource:Albania ) } . ?q property:flag ?p }
[]
flag
Q42876 Q82194 Q16611
SYSTEM
Flag of Italy, flag of Brazil, flag of Russia
Q42876 Q82194 Q16611
(Q38,P163,c(Q14660)) (Q155,P163,c(Q14660)) (Q159,P163,c(Q14660))
action filter_type
action find
entity prev_answer
relation P163
type Q14660
[ANSWERS] are associated with those administrative territories
['Q38', 'P163', {'concept': 'Q14660'}] ['Q155', 'P163', {'concept': 'Q14660'}] ['Q159', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q14660 . VALUES ( ?q ) { ( resource:Q948 ) ( resource:Q711 ) ( resource:Q222 ) } . ?q property:P163 ?p }
Flag of Italy flag of Brazil flag of Russia
Flag of Italy, flag of Brazil and flag of Russia are associated with those administrative territories
Flag of Italy flag of Brazil flag of Russia
action filter_type
action find
entity prev_answer
relation flag
type flag
['Italy', 'flag', {'concept': 'flag'}] ['Brazil', 'flag', {'concept': 'flag'}] ['Russia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:flag . VALUES ( ?q ) { ( resource:Tunisia ) ( resource:Mongolia ) ( resource:Albania ) } . ?q property:flag ?p }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q42876 Q82194 Q16611
P462
Q1075
USER
What colors are those flags associated with ?
(Q42876,P462,c(Q1075)) (Q82194,P462,c(Q1075)) (Q16611,P462,c(Q1075))
action filter_type
action find
entity prev_answer
relation P462
type Q1075
['Q42876', 'P462', {'concept': 'Q1075'}] ['Q82194', 'P462', {'concept': 'Q1075'}] ['Q16611', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?v WHERE { ?b property:P462 ?v . ?v rdf:type ontology:Q1075 . VALUES ( ?b ) { ( resource:Q42876 ) ( resource:Q82194 ) ( resource:Q16611 ) } }
Flag of Italy flag of Brazil flag of Russia
action filter_type
action find
entity prev_answer
relation color
type color
['Flag of Italy', 'color', {'concept': 'color'}] ['flag of Brazil', 'color', {'concept': 'color'}] ['flag of Russia', 'color', {'concept': 'color'}]
SELECT DISTINCT ?v WHERE { ?b property:color ?v . ?v rdf:type ontology:color . VALUES ( ?b ) { ( resource:Flag_of_Italy ) ( resource:flag_of_Brazil ) ( resource:flag_of_Russia ) } }
[]
color
Q3142 Q3133 Q943
SYSTEM
red, green, yellow
Q3142 Q3133 Q943 Q1088 Q3133 Q1088 Q3142
(Q42876,P462,c(Q1075)) (Q82194,P462,c(Q1075)) (Q16611,P462,c(Q1075))
action filter_type
action find
entity prev_answer
relation P462
type Q1075
Those flags are associated with [ANSWERS]
['Q42876', 'P462', {'concept': 'Q1075'}] ['Q82194', 'P462', {'concept': 'Q1075'}] ['Q16611', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?v WHERE { ?b property:P462 ?v . ?v rdf:type ontology:Q1075 . VALUES ( ?b ) { ( resource:Q42876 ) ( resource:Q82194 ) ( resource:Q16611 ) } }
red green yellow blue green blue red
Those flags are associated with red, green and yellow
red green yellow
action filter_type
action find
entity prev_answer
relation color
type color
['Flag of Italy', 'color', {'concept': 'color'}] ['flag of Brazil', 'color', {'concept': 'color'}] ['flag of Russia', 'color', {'concept': 'color'}]
SELECT DISTINCT ?v WHERE { ?b property:color ?v . ?v rdf:type ontology:color . VALUES ( ?b ) { ( resource:Flag_of_Italy ) ( resource:flag_of_Brazil ) ( resource:flag_of_Russia ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3142 Q3133 Q943
P462
Q838948
USER
Which works of art are colored red, green and yellow ?
(c(Q838948),P462,Q3142) (c(Q838948),P462,Q3133) (c(Q838948),P462,Q943)
action union
action filter_type
action find_reverse
entity Q3142
relation P462
type Q838948
action filter_type
action find_reverse
entity Q3133
relation P462
type Q838948
action filter_type
action find_reverse
entity Q943
relation P462
type Q838948
[{'concept': 'Q838948'}, 'P462', 'Q3142'] [{'concept': 'Q838948'}, 'P462', 'Q3133'] [{'concept': 'Q838948'}, 'P462', 'Q943']
SELECT DISTINCT ?p WHERE { VALUES ( ?m ) { ( resource:Q3133 ) ( resource:Q3142 ) } . ?p property:P462 ?m }
red green yellow
action union
action filter_type
action find_reverse
entity red
relation color
type work of art
action filter_type
action find_reverse
entity green
relation color
type work of art
action filter_type
action find_reverse
entity yellow
relation color
type work of art
[{'concept': 'work of art'}, 'color', 'red'] [{'concept': 'work of art'}, 'color', 'green'] [{'concept': 'work of art'}, 'color', 'yellow']
SELECT DISTINCT ?p WHERE { VALUES ( ?m ) { ( resource:green ) ( resource:red ) } . ?p property:color ?m }
[]
work of art
Q6906934 Q18328151 Q4886922
SYSTEM
Monumentalment IV, Tree, Bench Around the Lake
Q6906934 Q18328151 Q4886922
(c(Q838948),P462,Q3142) (c(Q838948),P462,Q3133) (c(Q838948),P462,Q943)
action union
action filter_type
action find_reverse
entity Q3142
relation P462
type Q838948
action filter_type
action find_reverse
entity Q3133
relation P462
type Q838948
action filter_type
action find_reverse
entity Q943
relation P462
type Q838948
[ANSWERS] are colored red, green and yellow
[{'concept': 'Q838948'}, 'P462', 'Q3142'] [{'concept': 'Q838948'}, 'P462', 'Q3133'] [{'concept': 'Q838948'}, 'P462', 'Q943']
SELECT DISTINCT ?p WHERE { VALUES ( ?m ) { ( resource:Q3133 ) ( resource:Q3142 ) } . ?p property:P462 ?m }
Monumentalment IV Tree Bench Around the Lake
Monumentalment IV, Tree and Bench Around the Lake are colored red, green and yellow
Monumentalment IV Tree Bench Around the Lake
action union
action filter_type
action find_reverse
entity red
relation color
type work of art
action filter_type
action find_reverse
entity green
relation color
type work of art
action filter_type
action find_reverse
entity yellow
relation color
type work of art
[{'concept': 'work of art'}, 'color', 'red'] [{'concept': 'work of art'}, 'color', 'green'] [{'concept': 'work of art'}, 'color', 'yellow']
SELECT DISTINCT ?p WHERE { VALUES ( ?m ) { ( resource:green ) ( resource:red ) } . ?p property:color ?m }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6906934
P127
Q1329623
USER
Who is the owner of that work of art ?
(Q6906934,P127,c(Q1329623))
action filter_type
action find
entity Q6906934
relation P127
type Q1329623
['Q6906934', 'P127', {'concept': 'Q1329623'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1329623 . resource:Q6906934 property:P127 ?p }
Monumentalment IV
action filter_type
action find
entity Monumentalment IV
relation owned by
type cultural center
['Monumentalment IV', 'owned by', {'concept': 'cultural center'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:cultural_center . resource:Monumentalment_IV property:owned_by ?p }
[]
cultural center
Clarification for simple ques.
Q18328151
SYSTEM
Did you mean Tree ?
Q6906934 Q18328151 Q4886922
(Q6906934,P127,c(Q1329623)) (Q18328151,P127,c(Q1329623)) (Q4886922,P127,c(Q1329623))
[ANSWER]
['Q6906934', 'P127', {'concept': 'Q1329623'}] ['Q18328151', 'P127', {'concept': 'Q1329623'}] ['Q4886922', 'P127', {'concept': 'Q1329623'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1329623 . resource:Q6906934 property:P127 ?p }
Monumentalment IV Tree Bench Around the Lake
Did you mean Tree ?
Tree
['Monumentalment IV', 'owned by', {'concept': 'cultural center'}] ['Tree', 'owned by', {'concept': 'cultural center'}] ['Bench Around the Lake', 'owned by', {'concept': 'cultural center'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:cultural_center . resource:Monumentalment_IV property:owned_by ?p }
[]
Simple Question (Coreferenced)
USER
No, I meant Monumentalment IV. Could you tell me the answer for that?
(Q6906934,P127,c(Q1329623))
Q6906934
['Q6906934', 'P127', {'concept': 'Q1329623'}]
['Monumentalment IV', 'owned by', {'concept': 'cultural center'}]
[]
Q15960623
SYSTEM
Indianapolis Art Center
Q15960623
(Q6906934,P127,c(Q1329623))
action filter_type
action find
entity Q6906934
relation P127
type Q1329623
The owner of that work of art is the [ANSWER]
['Q6906934', 'P127', {'concept': 'Q1329623'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1329623 . resource:Q6906934 property:P127 ?p }
Indianapolis Art Center
The owner of that work of art is the Indianapolis Art Center
Indianapolis Art Center
action filter_type
action find
entity Monumentalment IV
relation owned by
type cultural center
['Monumentalment IV', 'owned by', {'concept': 'cultural center'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:cultural_center . resource:Monumentalment_IV property:owned_by ?p }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P276
Q838948
USER
How many works of art are located at that cultural center ?
(c(Q838948),P276,Q15960623)
action count
action filter_type
action find_reverse
entity Q15960623
relation P276
type Q838948
[{'concept': 'Q838948'}, 'P276', 'Q15960623']
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:P276 resource:Q15960623 . ?t rdf:type ontology:Q838948 }
action count
action filter_type
action find_reverse
entity Indianapolis Art Center
relation location
type work of art
[{'concept': 'work of art'}, 'location', 'Indianapolis Art Center']
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:location resource:Indianapolis_Art_Center . ?t rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
4
Q7540478 Q5242588 Q4803862 Q7560304
(c(Q838948),P276,Q15960623)
action count
action filter_type
action find_reverse
entity Q15960623
relation P276
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P276', 'Q15960623']
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:P276 resource:Q15960623 . ?t rdf:type ontology:Q838948 }
Slightly Romanesque/Newhall 43 Dawnsong Ascent the Wind Sometimes I Sits
4
action count
action filter_type
action find_reverse
entity Indianapolis Art Center
relation location
type work of art
[{'concept': 'work of art'}, 'location', 'Indianapolis Art Center']
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:location resource:Indianapolis_Art_Center . ?t rdf:type ontology:work_of_art }
[]