Simple Question (Direct)
Simple Question
Q4685609
P641
Q349
USER
What was the sport that Adriano de Oliveira Santos was a part of ?
(Q4685609,P641,c(Q349))
action filter_type
action find
entity Q4685609
relation P641
type Q349
['Q4685609', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q349 . resource:Q4685609 property:P641 ?i }
Adriano de Oliveira Santos
action filter_type
action find
entity Adriano de Oliveira Santos
relation sport
type sport
['Adriano de Oliveira Santos', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sport . resource:Adriano_de_Oliveira_Santos property:sport ?i }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q4685609,P641,c(Q349))
action filter_type
action find
entity Q4685609
relation P641
type Q349
The sport that Adriano de Oliveira Santos was a part of was the [ANSWER]
['Q4685609', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q349 . resource:Q4685609 property:P641 ?i }
association football
The sport that Adriano de Oliveira Santos was a part of was the association football
association football
action filter_type
action find
entity Adriano de Oliveira Santos
relation sport
type sport
['Adriano de Oliveira Santos', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sport . resource:Adriano_de_Oliveira_Santos property:sport ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P495
Q1496967
USER
What is the country of origin of that sport ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?x WHERE { resource:Q2736 property:P495 ?x . ?x rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:association_football property:country_of_origin ?x . ?x rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
The country of origin of that sport is in [ANSWER]
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?x WHERE { resource:Q2736 property:P495 ?x . ?x rdf:type ontology:Q1496967 }
England
The country of origin of that sport is in England
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:association_football property:country_of_origin ?x . ?x rdf:type ontology:territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21
P163
Q14660
USER
What is associated with that territory ?
(Q21,P163,c(Q14660))
action filter_type
action find
entity Q21
relation P163
type Q14660
['Q21', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?v WHERE { resource:Q21 property:P163 ?v . ?v rdf:type ontology:Q14660 }
England
action filter_type
action find
entity England
relation flag
type flag
['England', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?v WHERE { resource:England property:flag ?v . ?v rdf:type ontology:flag }
[]
flag
Q171117
SYSTEM
flag of England
Q171117
(Q21,P163,c(Q14660))
action filter_type
action find
entity Q21
relation P163
type Q14660
The [ANSWER] is associated with that territory
['Q21', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?v WHERE { resource:Q21 property:P163 ?v . ?v rdf:type ontology:Q14660 }
flag of England
The flag of England is associated with that territory
flag of England
action filter_type
action find
entity England
relation flag
type flag
['England', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?v WHERE { resource:England property:flag ?v . ?v rdf:type ontology:flag }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1025 Q21
P163
Q14660
USER
Or Mauritania?
OR((Q21,P163,c(Q14660)), (Q1025,P163,c(Q14660)))
action filter_type
action union
action find
entity Q21
relation P163
action find
entity Q1025
relation P163
type Q14660
{'OR': [['Q21', 'P163', {'concept': 'Q14660'}], ['Q1025', 'P163', {'concept': 'Q14660'}]]}
SELECT DISTINCT ?s WHERE { { ?k property:P163 ?s . VALUES ( ?k ) { ( resource:Q21 ) ( resource:Q1025 ) } } . ?s rdf:type ontology:Q14660 }
Mauritania England
action filter_type
action union
action find
entity England
relation flag
action find
entity Mauritania
relation flag
type flag
{'OR': [['England', 'flag', {'concept': 'flag'}], ['Mauritania', 'flag', {'concept': 'flag'}]]}
SELECT DISTINCT ?s WHERE { { ?k property:flag ?s . VALUES ( ?k ) { ( resource:England ) ( resource:Mauritania ) } } . ?s rdf:type ontology:flag }
[]
flag
Q171117 Q102977
SYSTEM
flag of England, Flag of Mauritania
Q171117 Q102977
OR((Q21,P163,c(Q14660)), (Q1025,P163,c(Q14660)))
action filter_type
action union
action find
entity Q21
relation P163
action find
entity Q1025
relation P163
type Q14660
[ANSWERS]
{'OR': [['Q21', 'P163', {'concept': 'Q14660'}], ['Q1025', 'P163', {'concept': 'Q14660'}]]}
SELECT DISTINCT ?s WHERE { { ?k property:P163 ?s . VALUES ( ?k ) { ( resource:Q21 ) ( resource:Q1025 ) } } . ?s rdf:type ontology:Q14660 }
flag of England Flag of Mauritania
flag of England Flag of Mauritania
action filter_type
action union
action find
entity England
relation flag
action find
entity Mauritania
relation flag
type flag
{'OR': [['England', 'flag', {'concept': 'flag'}], ['Mauritania', 'flag', {'concept': 'flag'}]]}
SELECT DISTINCT ?s WHERE { { ?k property:flag ?s . VALUES ( ?k ) { ( resource:England ) ( resource:Mauritania ) } } . ?s rdf:type ontology:flag }
[]
Clarification
Simple Question|Single Entity|Indirect
Q171117
P1001
Q1496967
USER
Which territory is linked to that flag ?
(Q171117,P1001,c(Q1496967))
action filter_type
action find
entity Q171117
relation P1001
type Q1496967
['Q171117', 'P1001', {'concept': 'Q1496967'}]
SELECT DISTINCT ?i WHERE { resource:Q171117 property:P1001 ?i . ?i rdf:type ontology:Q1496967 }
flag of England
action filter_type
action find
entity flag of England
relation applies to jurisdiction
type territorial entity
['flag of England', 'applies to jurisdiction', {'concept': 'territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:flag_of_England property:applies_to_jurisdiction ?i . ?i rdf:type ontology:territorial_entity }
[]
territorial entity
Clarification for simple ques.
Q102977
SYSTEM
Did you mean Flag of Mauritania ?
Q171117 Q102977
(Q171117,P1001,c(Q1496967)) (Q102977,P1001,c(Q1496967))
[ANSWER]
['Q171117', 'P1001', {'concept': 'Q1496967'}] ['Q102977', 'P1001', {'concept': 'Q1496967'}]
SELECT DISTINCT ?i WHERE { resource:Q171117 property:P1001 ?i . ?i rdf:type ontology:Q1496967 }
flag of England Flag of Mauritania
Did you mean Flag of Mauritania ?
Flag of Mauritania
['flag of England', 'applies to jurisdiction', {'concept': 'territorial entity'}] ['Flag of Mauritania', 'applies to jurisdiction', {'concept': 'territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:flag_of_England property:applies_to_jurisdiction ?i . ?i rdf:type ontology:territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant flag of England. Could you tell me the answer for that?
(Q171117,P1001,c(Q1496967))
Q171117
['Q171117', 'P1001', {'concept': 'Q1496967'}]
['flag of England', 'applies to jurisdiction', {'concept': 'territorial entity'}]
[]
Q21
SYSTEM
England
Q21
(Q171117,P1001,c(Q1496967))
action filter_type
action find
entity Q171117
relation P1001
type Q1496967
[ANSWER] is linked to that flag
['Q171117', 'P1001', {'concept': 'Q1496967'}]
SELECT DISTINCT ?i WHERE { resource:Q171117 property:P1001 ?i . ?i rdf:type ontology:Q1496967 }
England
England is linked to that flag
England
action filter_type
action find
entity flag of England
relation applies to jurisdiction
type territorial entity
['flag of England', 'applies to jurisdiction', {'concept': 'territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:flag_of_England property:applies_to_jurisdiction ?i . ?i rdf:type ontology:territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q21 Q963197
P840
Q838948
USER
Does Hysterical have its narrative set in that territory ?
(Q963197,P840,Q21)
action is_in
entity Q963197
action find
entity Q21
relation P840
['Q963197', 'P840', 'Q21']
ASK WHERE { resource:Q21 property:P840 resource:Q963197 }
England Hysterical
action is_in
entity Hysterical
action find
entity England
relation narrative location
['Hysterical', 'narrative location', 'England']
ASK WHERE { resource:England property:narrative_location resource:Hysterical }
[]
work of art
SYSTEM
NO
(Q963197,P840,Q21)
action is_in
entity Q963197
action find
entity Q21
relation P840
[ANSWER]
['Q963197', 'P840', 'Q21']
ASK WHERE { resource:Q21 property:P840 resource:Q963197 }
No
action is_in
entity Hysterical
action find
entity England
relation narrative location
['Hysterical', 'narrative location', 'England']
ASK WHERE { resource:England property:narrative_location resource:Hysterical }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q102977 Q1025
P1001
Q15617994
USER
Does Mauritania come under the jurisdiction of that flag ?
(Q102977,P1001,Q1025)
action is_in
entity Q1025
action find
entity Q102977
relation P1001
['Q102977', 'P1001', 'Q1025']
ASK WHERE { resource:Q102977 property:P1001 resource:Q1025 }
Flag of Mauritania Mauritania
action is_in
entity Mauritania
action find
entity Flag of Mauritania
relation applies to jurisdiction
['Flag of Mauritania', 'applies to jurisdiction', 'Mauritania']
ASK WHERE { resource:Flag_of_Mauritania property:applies_to_jurisdiction resource:Mauritania }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q102977,P1001,Q1025)
action is_in
entity Q1025
action find
entity Q102977
relation P1001
[ANSWER]
['Q102977', 'P1001', 'Q1025']
ASK WHERE { resource:Q102977 property:P1001 resource:Q1025 }
Yes
action is_in
entity Mauritania
action find
entity Flag of Mauritania
relation applies to jurisdiction
['Flag of Mauritania', 'applies to jurisdiction', 'Mauritania']
ASK WHERE { resource:Flag_of_Mauritania property:applies_to_jurisdiction resource:Mauritania }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q102977
P180
Q478798
USER
Which image is expressed in that flag ?
action filter_type
action find
entity Q102977
relation P180
type Q478798
SELECT DISTINCT ?r WHERE { resource:Q102977 property:P180 ?r . ?r rdf:type ontology:Q478798 }
Flag of Mauritania
action filter_type
action find
entity Flag of Mauritania
relation depicts
type image
SELECT DISTINCT ?r WHERE { resource:Flag_of_Mauritania property:depicts ?r . ?r rdf:type ontology:image }
[]
image
Q3592503
SYSTEM
star and crescent
Q3592503
action filter_type
action find
entity Q102977
relation P180
type Q478798
The [ANSWER] is expressed in that flag
SELECT DISTINCT ?r WHERE { resource:Q102977 property:P180 ?r . ?r rdf:type ontology:Q478798 }
star and crescent
The star and crescent is expressed in that flag
star and crescent
action filter_type
action find
entity Flag of Mauritania
relation depicts
type image
SELECT DISTINCT ?r WHERE { resource:Flag_of_Mauritania property:depicts ?r . ?r rdf:type ontology:image }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q102977
P462
Q1075
USER
Which color is that flag associated with ?
(Q3592503,P462,c(Q1075))
action filter_type
action find
entity Q102977
relation P462
type Q1075
['Q3592503', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1075 . resource:Q102977 property:P462 ?i }
Flag of Mauritania
action filter_type
action find
entity Flag of Mauritania
relation color
type color
['star and crescent', 'color', {'concept': 'color'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:color . resource:Flag_of_Mauritania property:color ?i }
[]
color
Q3133
SYSTEM
green
Q3133
(Q3592503,P462,c(Q1075))
action filter_type
action find
entity Q102977
relation P462
type Q1075
That flag is associated with [ANSWER]
['Q3592503', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1075 . resource:Q102977 property:P462 ?i }
green
That flag is associated with green
green
action filter_type
action find
entity Flag of Mauritania
relation color
type color
['star and crescent', 'color', {'concept': 'color'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:color . resource:Flag_of_Mauritania property:color ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3133
P1340
Q502895
USER
Who have that one as the color of iris ?
(c(Q502895),P1340,Q3133)
action filter_type
action find_reverse
entity Q3133
relation P1340
type Q502895
[{'concept': 'Q502895'}, 'P1340', 'Q3133']
SELECT DISTINCT ?u WHERE { ?u property:P1340 resource:Q3133 . ?u rdf:type ontology:Q502895 }
green
action filter_type
action find_reverse
entity green
relation eye color
type common name
[{'concept': 'common name'}, 'eye color', 'green']
SELECT DISTINCT ?u WHERE { ?u property:eye_color resource:green . ?u rdf:type ontology:common_name }
[]
common name
Q292749 Q3555375
SYSTEM
Karlie Kloss, Daniela Alvarado
Q292749 Q3555375
(c(Q502895),P1340,Q3133)
action filter_type
action find_reverse
entity Q3133
relation P1340
type Q502895
[ANSWERS] have that one as the color of iris
[{'concept': 'Q502895'}, 'P1340', 'Q3133']
SELECT DISTINCT ?u WHERE { ?u property:P1340 resource:Q3133 . ?u rdf:type ontology:Q502895 }
Karlie Kloss Daniela Alvarado
Karlie Kloss and Daniela Alvarado have that one as the color of iris
Karlie Kloss Daniela Alvarado
action filter_type
action find_reverse
entity green
relation eye color
type common name
[{'concept': 'common name'}, 'eye color', 'green']
SELECT DISTINCT ?u WHERE { ?u property:eye_color resource:green . ?u rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3555375
P161
Q15416
USER
Which television program stars that person as actor ?
(c(Q15416),P161,Q3555375)
action filter_type
action find_reverse
entity Q3555375
relation P161
type Q15416
[{'concept': 'Q15416'}, 'P161', 'Q3555375']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15416 . ?i property:P161 resource:Q3555375 }
Daniela Alvarado
action filter_type
action find_reverse
entity Daniela Alvarado
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Daniela Alvarado']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:television_program . ?i property:cast_member resource:Daniela_Alvarado }
[]
television program
Clarification for simple ques.
Q292749
SYSTEM
Did you mean Karlie Kloss ?
Q292749 Q3555375
(c(Q15416),P161,Q292749) (c(Q15416),P161,Q3555375)
[ANSWER]
[{'concept': 'Q15416'}, 'P161', 'Q292749'] [{'concept': 'Q15416'}, 'P161', 'Q3555375']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15416 . ?i property:P161 resource:Q3555375 }
Karlie Kloss Daniela Alvarado
Did you mean Karlie Kloss ?
Karlie Kloss
[{'concept': 'television program'}, 'cast member', 'Karlie Kloss'] [{'concept': 'television program'}, 'cast member', 'Daniela Alvarado']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:television_program . ?i property:cast_member resource:Daniela_Alvarado }
[]
Simple Question (Coreferenced)
USER
No, I meant Daniela Alvarado. Could you tell me the answer for that?
(c(Q15416),P161,Q3555375)
Q3555375
[{'concept': 'Q15416'}, 'P161', 'Q3555375']
[{'concept': 'television program'}, 'cast member', 'Daniela Alvarado']
[]
Q3077207
SYSTEM
Mi ex me tiene ganas
Q3077207
(c(Q15416),P161,Q3555375)
action filter_type
action find_reverse
entity Q3555375
relation P161
type Q15416
[ANSWER] stars that person as actor
[{'concept': 'Q15416'}, 'P161', 'Q3555375']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15416 . ?i property:P161 resource:Q3555375 }
Mi ex me tiene ganas
Mi ex me tiene ganas stars that person as actor
Mi ex me tiene ganas
action filter_type
action find_reverse
entity Daniela Alvarado
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Daniela Alvarado']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:television_program . ?i property:cast_member resource:Daniela_Alvarado }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1445
Q15416 Q386724
USER
How many works represents a fictional universe described in atleast 3 television programs ?
(c(Q386724),P1445,c(Q15416))
action count
action atleast
action find_tuple_counts
relation P1445
type Q386724
type Q15416
value 3
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?w ) WHERE { ?c property:P1445 ?e . ?e rdf:type ontology:Q15416 . ?c rdf:type ontology:Q386724 } GROUP BY ?c } . FILTER ( ?w >= 3 ) }
action count
action atleast
action find_tuple_counts
relation fictional universe described in
type work
type television program
value 3
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?w ) WHERE { ?c property:fictional_universe_described_in ?e . ?e rdf:type ontology:television_program . ?c rdf:type ontology:work } GROUP BY ?c } . FILTER ( ?w >= 3 ) }
[]
television program work
SYSTEM
1
Q1203222
(c(Q386724),P1445,c(Q15416))
action count
action atleast
action find_tuple_counts
relation P1445
type Q386724
type Q15416
value 3
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?w ) WHERE { ?c property:P1445 ?e . ?e rdf:type ontology:Q15416 . ?c rdf:type ontology:Q386724 } GROUP BY ?c } . FILTER ( ?w >= 3 ) }
Shrek
1
action count
action atleast
action find_tuple_counts
relation fictional universe described in
type work
type television program
value 3
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?w ) WHERE { ?c property:fictional_universe_described_in ?e . ?e rdf:type ontology:television_program . ?c rdf:type ontology:work } GROUP BY ?c } . FILTER ( ?w >= 3 ) }
[]