Simple Question (Direct)
Simple Question
Q5484040
P54
Q1194951
USER
Which national sports team is Francisco Vieira a member of ?
(Q5484040,P54,c(Q1194951))
action filter_type
action find
entity Q5484040
relation P54
type Q1194951
['Q5484040', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?m WHERE { resource:Q5484040 property:P54 ?m . ?m rdf:type ontology:Q1194951 }
Francisco Vieira
action filter_type
action find
entity Francisco Vieira
relation member of sports team
type national sports team
['Francisco Vieira', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?m WHERE { resource:Francisco_Vieira property:member_of_sports_team ?m . ?m rdf:type ontology:national_sports_team }
[]
national sports team
Q267245
SYSTEM
Portugal national football team
Q267245
(Q5484040,P54,c(Q1194951))
action filter_type
action find
entity Q5484040
relation P54
type Q1194951
The [ANSWER] is Francisco Vieira a member of
['Q5484040', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?m WHERE { resource:Q5484040 property:P54 ?m . ?m rdf:type ontology:Q1194951 }
Portugal national football team
The Portugal national football team is Francisco Vieira a member of
Portugal national football team
action filter_type
action find
entity Francisco Vieira
relation member of sports team
type national sports team
['Francisco Vieira', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?m WHERE { resource:Francisco_Vieira property:member_of_sports_team ?m . ?m rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5484040
P641
Q349
USER
Which sport was Francisco Vieira a part of ?
(Q5484040,P641,c(Q349))
action filter_type
action find
entity Q5484040
relation P641
type Q349
['Q5484040', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q5484040 property:P641 ?y . ?y rdf:type ontology:Q349 }
Francisco Vieira
action filter_type
action find
entity Francisco Vieira
relation sport
type sport
['Francisco Vieira', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:Francisco_Vieira property:sport ?y . ?y rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5484040,P641,c(Q349))
action filter_type
action find
entity Q5484040
relation P641
type Q349
Were [ANSWER] was Francisco Vieira a part of
['Q5484040', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q5484040 property:P641 ?y . ?y rdf:type ontology:Q349 }
association football
Were association football was Francisco Vieira a part of
association football
action filter_type
action find
entity Francisco Vieira
relation sport
type sport
['Francisco Vieira', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:Francisco_Vieira property:sport ?y . ?y rdf:type ontology:sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q979288
Q349
USER
And how about Ural Ufa?
(Q979288,P641,c(Q349))
action filter_type
action find
entity Q979288
relation P641
type Q349
['Q979288', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q979288 property:P641 ?z . ?z rdf:type ontology:Q349 }
Ural Ufa
action filter_type
action find
entity Ural Ufa
relation sport
type sport
['Ural Ufa', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:Ural_Ufa property:sport ?z . ?z rdf:type ontology:sport }
[]
sport
Q1734
SYSTEM
volleyball
Q1734
(Q979288,P641,c(Q349))
action filter_type
action find
entity Q979288
relation P641
type Q349
[ANSWER]
['Q979288', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q979288 property:P641 ?z . ?z rdf:type ontology:Q349 }
volleyball
volleyball
action filter_type
action find
entity Ural Ufa
relation sport
type sport
['Ural Ufa', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:Ural_Ufa property:sport ?z . ?z rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5484040
P19
Q56061
USER
Which administrative territory is the place of birth of Francisco Vieira ?
(Q5484040,P19,c(Q56061))
action filter_type
action find
entity Q5484040
relation P19
type Q56061
['Q5484040', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q5484040 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Francisco Vieira
action filter_type
action find
entity Francisco Vieira
relation place of birth
type administrative territorial entity
['Francisco Vieira', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Francisco_Vieira property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q597
SYSTEM
Lisbon
Q597
(Q5484040,P19,c(Q56061))
action filter_type
action find
entity Q5484040
relation P19
type Q56061
[ANSWER] is the place of birth of Francisco Vieira
['Q5484040', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q5484040 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Lisbon
Lisbon is the place of birth of Francisco Vieira
Lisbon
action filter_type
action find
entity Francisco Vieira
relation place of birth
type administrative territorial entity
['Francisco Vieira', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Francisco_Vieira property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3831069
Q56061
USER
And also tell me about Leto Prunecchi?
(Q3831069,P19,c(Q56061))
action filter_type
action find
entity Q3831069
relation P19
type Q56061
['Q3831069', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q3831069 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Leto Prunecchi
action filter_type
action find
entity Leto Prunecchi
relation place of birth
type administrative territorial entity
['Leto Prunecchi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Leto_Prunecchi property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q82619
SYSTEM
Borgo San Lorenzo
Q82619
(Q3831069,P19,c(Q56061))
action filter_type
action find
entity Q3831069
relation P19
type Q56061
[ANSWER]
['Q3831069', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q3831069 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Borgo San Lorenzo
Borgo San Lorenzo
action filter_type
action find
entity Leto Prunecchi
relation place of birth
type administrative territorial entity
['Leto Prunecchi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Leto_Prunecchi property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories are adjacent to that administrative territory ?
(Q82619,P47,c(Q15617994))
action count
action filter_type
action find
entity Q82619
relation P47
type Q15617994
['Q82619', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { resource:Q82619 property:P47 ?j . ?j rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity Borgo San Lorenzo
relation shares border with
type designation for an administrative territorial entity
['Borgo San Lorenzo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { resource:Borgo_San_Lorenzo property:shares_border_with ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
7
Q82837 Q82759 Q82785 Q82791 Q15527609 Q82846 Q82670
(Q82619,P47,c(Q15617994))
action count
action filter_type
action find
entity Q82619
relation P47
type Q15617994
[ANSWER]
['Q82619', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { resource:Q82619 property:P47 ?j . ?j rdf:type ontology:Q15617994 }
San Piero a Sieve Marradi Palazzuolo sul Senio Pontassieve Scarperia e San Piero Scarperia Fiesole
7
action count
action filter_type
action find
entity Borgo San Lorenzo
relation shares border with
type designation for an administrative territorial entity
['Borgo San Lorenzo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { resource:Borgo_San_Lorenzo property:shares_border_with ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q25004990 Q5484040
P27 P17
Q15617994
USER
Which administrative territories are Francisco Vieira an inhabitant of or are Puerto Rico Highway 41 situated in ?
OR((Q5484040,P27,c(Q15617994)), (Q25004990,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5484040
relation P27
action find
entity Q25004990
relation P17
type Q15617994
{'OR': [['Q5484040', 'P27', {'concept': 'Q15617994'}], ['Q25004990', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q5484040 property:P27 ?o } UNION { resource:Q25004990 property:P17 ?o } } . ?o rdf:type ontology:Q15617994 }
Puerto Rico Highway 41 Francisco Vieira
action filter_type
action union
action find
entity Francisco Vieira
relation country of citizenship
action find
entity Puerto Rico Highway 41
relation country
type designation for an administrative territorial entity
{'OR': [['Francisco Vieira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Puerto Rico Highway 41', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Francisco_Vieira property:country_of_citizenship ?o } UNION { resource:Puerto_Rico_Highway_41 property:country ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q45 Q30
SYSTEM
Portugal, United States of America
Q45 Q30
OR((Q5484040,P27,c(Q15617994)), (Q25004990,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5484040
relation P27
action find
entity Q25004990
relation P17
type Q15617994
[ANSWERS] are Francisco Vieira an inhabitant of or are Puerto Rico Highway 41 situated in
{'OR': [['Q5484040', 'P27', {'concept': 'Q15617994'}], ['Q25004990', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q5484040 property:P27 ?o } UNION { resource:Q25004990 property:P17 ?o } } . ?o rdf:type ontology:Q15617994 }
Portugal United States of America
Portugal and United States of America are Francisco Vieira an inhabitant of or are Puerto Rico Highway 41 situated in
Portugal United States of America
action filter_type
action union
action find
entity Francisco Vieira
relation country of citizenship
action find
entity Puerto Rico Highway 41
relation country
type designation for an administrative territorial entity
{'OR': [['Francisco Vieira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Puerto Rico Highway 41', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Francisco_Vieira property:country_of_citizenship ?o } UNION { resource:Puerto_Rico_Highway_41 property:country ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P1071
Q386724 Q478798
USER
How many works and images have United States of America as their final assembly location ?
(c(Q386724),P1071,Q30) (c(Q478798),P1071,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P1071
type Q386724
action filter_type
action find_reverse
entity Q30
relation P1071
type Q478798
[{'concept': 'Q386724'}, 'P1071', 'Q30'] [{'concept': 'Q478798'}, 'P1071', 'Q30']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { VALUES ( ?e ) { ( ontology:Q386724 ) ( ontology:Q478798 ) } . ?h rdf:type ?e }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation location of final assembly
type work
action filter_type
action find_reverse
entity United States of America
relation location of final assembly
type image
[{'concept': 'work'}, 'location of final assembly', 'United States of America'] [{'concept': 'image'}, 'location of final assembly', 'United States of America']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { VALUES ( ?e ) { ( ontology:work ) ( ontology:image ) } . ?h rdf:type ?e }
[]
work image
SYSTEM
1 works and 1 images
Q18669758 Q18579026
(c(Q386724),P1071,Q30) (c(Q478798),P1071,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P1071
type Q386724
action filter_type
action find_reverse
entity Q30
relation P1071
type Q478798
[ANSWER]
[{'concept': 'Q386724'}, 'P1071', 'Q30'] [{'concept': 'Q478798'}, 'P1071', 'Q30']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { VALUES ( ?e ) { ( ontology:Q386724 ) ( ontology:Q478798 ) } . ?h rdf:type ?e }
Red and Yellow, Black and White The Gardener
1 works and 1 images
action count
action union
action filter_type
action find_reverse
entity United States of America
relation location of final assembly
type work
action filter_type
action find_reverse
entity United States of America
relation location of final assembly
type image
[{'concept': 'work'}, 'location of final assembly', 'United States of America'] [{'concept': 'image'}, 'location of final assembly', 'United States of America']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { VALUES ( ?e ) { ( ontology:work ) ( ontology:image ) } . ?h rdf:type ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q597
P840
Q838948
USER
Which works of art have their narrative set in Lisbon ?
(c(Q838948),P840,Q597)
action filter_type
action find_reverse
entity Q597
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q597']
SELECT DISTINCT ?v WHERE { ?v property:P840 resource:Q597 . ?v rdf:type ontology:Q838948 }
Lisbon
action filter_type
action find_reverse
entity Lisbon
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Lisbon']
SELECT DISTINCT ?v WHERE { ?v property:narrative_location resource:Lisbon . ?v rdf:type ontology:work_of_art }
[]
work of art
Q1748666 Q694651 Q6002660
SYSTEM
Tabu, Lisbon Story, Imagine
Q1748666 Q694651 Q6002660
(c(Q838948),P840,Q597)
action filter_type
action find_reverse
entity Q597
relation P840
type Q838948
[ANSWERS] have their narrative set in Lisbon
[{'concept': 'Q838948'}, 'P840', 'Q597']
SELECT DISTINCT ?v WHERE { ?v property:P840 resource:Q597 . ?v rdf:type ontology:Q838948 }
Tabu Lisbon Story Imagine
Tabu, Lisbon Story and Imagine have their narrative set in Lisbon
Tabu Lisbon Story Imagine
action filter_type
action find_reverse
entity Lisbon
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Lisbon']
SELECT DISTINCT ?v WHERE { ?v property:narrative_location resource:Lisbon . ?v rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1748666 Q694651 Q6002660
P136
Q1792379
USER
What can be considered as category for those works of art ?
(Q1748666,P136,c(Q1792379)) (Q694651,P136,c(Q1792379)) (Q6002660,P136,c(Q1792379))
action filter_type
action find
entity prev_answer
relation P136
type Q1792379
['Q1748666', 'P136', {'concept': 'Q1792379'}] ['Q694651', 'P136', {'concept': 'Q1792379'}] ['Q6002660', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?h WHERE { ?u property:P136 ?h . ?h rdf:type ontology:Q1792379 . VALUES ( ?u ) { ( resource:Q1748666 ) ( resource:Q694651 ) ( resource:Q6002660 ) } }
Tabu Lisbon Story Imagine
action filter_type
action find
entity prev_answer
relation genre
type art genre
['Tabu', 'genre', {'concept': 'art genre'}] ['Lisbon Story', 'genre', {'concept': 'art genre'}] ['Imagine', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?h WHERE { ?u property:genre ?h . ?h rdf:type ontology:art_genre . VALUES ( ?u ) { ( resource:Tabu ) ( resource:Lisbon_Story ) ( resource:Imagine ) } }
[]
art genre
Q1054574 Q1054574 Q130232
SYSTEM
romance film for 1st, 2nd, drama film for 3rd
Q1054574 Q130232 Q130232 Q842256 Q1054574 Q130232
(Q1748666,P136,c(Q1792379)) (Q694651,P136,c(Q1792379)) (Q6002660,P136,c(Q1792379))
action filter_type
action find
entity prev_answer
relation P136
type Q1792379
[ANSWERS]
['Q1748666', 'P136', {'concept': 'Q1792379'}] ['Q694651', 'P136', {'concept': 'Q1792379'}] ['Q6002660', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?h WHERE { ?u property:P136 ?h . ?h rdf:type ontology:Q1792379 . VALUES ( ?u ) { ( resource:Q1748666 ) ( resource:Q694651 ) ( resource:Q6002660 ) } }
romance film drama film drama film musical film romance film drama film
Romance film, romance film and drama film can be considered as category for those works of art
romance film romance film drama film
action filter_type
action find
entity prev_answer
relation genre
type art genre
['Tabu', 'genre', {'concept': 'art genre'}] ['Lisbon Story', 'genre', {'concept': 'art genre'}] ['Imagine', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?h WHERE { ?u property:genre ?h . ?h rdf:type ontology:art_genre . VALUES ( ?u ) { ( resource:Tabu ) ( resource:Lisbon_Story ) ( resource:Imagine ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1748666
P161
Q502895
USER
Who starred in that work of art ?
(Q1748666,P161,c(Q502895))
action filter_type
action find
entity Q1748666
relation P161
type Q502895
['Q1748666', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1748666 property:P161 ?t . ?t rdf:type ontology:Q502895 }
Tabu
action filter_type
action find
entity Tabu
relation cast member
type common name
['Tabu', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Tabu property:cast_member ?t . ?t rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1748666
SYSTEM
Did you mean Tabu ?
Q1054574 Q1054574 Q130232
(Q1054574,P161,c(Q502895)) (Q1054574,P161,c(Q502895)) (Q130232,P161,c(Q502895))
[ANSWER]
['Q1054574', 'P161', {'concept': 'Q502895'}] ['Q1054574', 'P161', {'concept': 'Q502895'}] ['Q130232', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1748666 property:P161 ?t . ?t rdf:type ontology:Q502895 }
romance film romance film drama film
Did you mean Tabu ?
Tabu
['romance film', 'cast member', {'concept': 'common name'}] ['romance film', 'cast member', {'concept': 'common name'}] ['drama film', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Tabu property:cast_member ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1748666,P161,c(Q502895))
['Q1748666', 'P161', {'concept': 'Q502895'}]
['Tabu', 'cast member', {'concept': 'common name'}]
[]
Q1890376 Q10294743 Q10304461
SYSTEM
Miguel Gomes, Henrique Espírito Santo, Ivo Müller
Q513024 Q10304461 Q10321457 Q10262965 Q482987 Q1890376 Q10294743 Q5042824 Q24881
(Q1748666,P161,c(Q502895))
action filter_type
action find
entity Q1748666
relation P161
type Q502895
[ANSWERS] starred in that work of art
['Q1748666', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1748666 property:P161 ?t . ?t rdf:type ontology:Q502895 }
Teresa Madruga Ivo Müller Luís Gaspar Cândido Ferreira Ana Moreira Miguel Gomes Henrique Espírito Santo Carloto Cotta Laura Soveral
Miguel Gomes, Henrique Espírito Santo and Ivo Müller starred in that work of art
Miguel Gomes Henrique Espírito Santo Ivo Müller
action filter_type
action find
entity Tabu
relation cast member
type common name
['Tabu', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Tabu property:cast_member ?t . ?t rdf:type ontology:common_name }
[]