Simple Question (Direct)
Simple Question
Q3370132
P106
Q12737077
USER
What is the job of Patrícia Ferreira ?
(Q3370132,P106,c(Q12737077))
action filter_type
action find
entity Q3370132
relation P106
type Q12737077
['Q3370132', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3370132 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Patrícia Ferreira
action filter_type
action find
entity Patrícia Ferreira
relation occupation
type occupation
['Patrícia Ferreira', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Patrícia_Ferreira property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q3665646
SYSTEM
basketball player
Q3665646
(Q3370132,P106,c(Q12737077))
action filter_type
action find
entity Q3370132
relation P106
type Q12737077
The job of Patrícia Ferreira is a [ANSWER]
['Q3370132', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3370132 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
basketball player
The job of Patrícia Ferreira is a basketball player
basketball player
action filter_type
action find
entity Patrícia Ferreira
relation occupation
type occupation
['Patrícia Ferreira', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Patrícia_Ferreira property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3370132
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q3665646,P27,c(Q15617994))
action filter_type
action find
entity Q3370132
relation P27
type Q15617994
['Q3665646', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q3370132 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Patrícia Ferreira
action filter_type
action find
entity Patrícia Ferreira
relation country of citizenship
type designation for an administrative territorial entity
['basketball player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Patrícia_Ferreira property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q3665646,P27,c(Q15617994))
action filter_type
action find
entity Q3370132
relation P27
type Q15617994
[ANSWER] is that person an inhabitant of
['Q3665646', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q3370132 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Brazil
Brazil is that person an inhabitant of
Brazil
action filter_type
action find
entity Patrícia Ferreira
relation country of citizenship
type designation for an administrative territorial entity
['basketball player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Patrícia_Ferreira property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q130232 Q3370132
P136 P57
Q838948
USER
Which works of art are Patrícia Ferreira a director of and have drama film as genre ?
AND((c(Q838948),P57,Q3370132), (c(Q838948),P136,Q130232))
action filter_type
action intersection
action find_reverse
entity Q3370132
relation P57
action find_reverse
entity Q130232
relation P136
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P57', 'Q3370132'], [{'concept': 'Q838948'}, 'P136', 'Q130232']]}
SELECT DISTINCT ?i WHERE { ?i property:P57 resource:Q3370132 . ?i property:P136 resource:Q130232 . ?i rdf:type ontology:Q838948 }
drama film Patrícia Ferreira
action filter_type
action intersection
action find_reverse
entity Patrícia Ferreira
relation director
action find_reverse
entity drama film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'director', 'Patrícia Ferreira'], [{'concept': 'work of art'}, 'genre', 'drama film']]}
SELECT DISTINCT ?i WHERE { ?i property:director resource:Patrícia_Ferreira . ?i property:genre resource:drama_film . ?i rdf:type ontology:work_of_art }
[]
work of art
Q3051699
SYSTEM
Els Nens Salvatges
Q3051699
AND((c(Q838948),P57,Q3370132), (c(Q838948),P136,Q130232))
action filter_type
action intersection
action find_reverse
entity Q3370132
relation P57
action find_reverse
entity Q130232
relation P136
type Q838948
[ANSWER] is Patrícia Ferreira a director of and have drama film as genre
{'AND': [[{'concept': 'Q838948'}, 'P57', 'Q3370132'], [{'concept': 'Q838948'}, 'P136', 'Q130232']]}
SELECT DISTINCT ?i WHERE { ?i property:P57 resource:Q3370132 . ?i property:P136 resource:Q130232 . ?i rdf:type ontology:Q838948 }
Els Nens Salvatges
Els Nens Salvatges is Patrícia Ferreira a director of and have drama film as genre
Els Nens Salvatges
action filter_type
action intersection
action find_reverse
entity Patrícia Ferreira
relation director
action find_reverse
entity drama film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'director', 'Patrícia Ferreira'], [{'concept': 'work of art'}, 'genre', 'drama film']]}
SELECT DISTINCT ?i WHERE { ?i property:director resource:Patrícia_Ferreira . ?i property:genre resource:drama_film . ?i rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P161
Q502895
USER
How many people were casted in that work of art ?
(Q3051699,P161,c(Q502895))
action count
action filter_type
action find
entity Q3051699
relation P161
type Q502895
['Q3051699', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p rdf:type ontology:Q502895 . resource:Q3051699 property:P161 ?p }
action count
action filter_type
action find
entity Els Nens Salvatges
relation cast member
type common name
['Els Nens Salvatges', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p rdf:type ontology:common_name . resource:Els_Nens_Salvatges property:cast_member ?p }
[]
common name
SYSTEM
6
Q3186366 Q447871 Q5673753 Q3827534 Q2372851 Q3576947
(Q3051699,P161,c(Q502895))
action count
action filter_type
action find
entity Q3051699
relation P161
type Q502895
[ANSWER]
['Q3051699', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p rdf:type ontology:Q502895 . resource:Q3051699 property:P161 ?p }
José Luis García Pérez Mercè Pons Ana Fernández Marina Comas Emma Vilarasau Àlex Monner
6
action count
action filter_type
action find
entity Els Nens Salvatges
relation cast member
type common name
['Els Nens Salvatges', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p rdf:type ontology:common_name . resource:Els_Nens_Salvatges property:cast_member ?p }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q6675667
P361
Q838948 Q6619679 Q2031291
USER
How many works of art are greater number of fictional humanoids or releases a portion of than Looney Tunes: Unleashed ?
(c(Q6619679)|c(Q2031291),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q6675667
relation P361
type Q6619679
type Q2031291
[[{'concept': 'Q6619679'}, {'concept': 'Q2031291'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?t WHERE { { ?e property:P361 ?t . ?e rdf:type ontology:Q2031291 . ?t rdf:type ontology:Q838948 } UNION { ?t rdf:type ontology:Q838948 . ?e rdf:type ontology:Q6619679 . ?e property:P361 ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { { ?i rdf:type ontology:Q6619679 } UNION { ?i rdf:type ontology:Q2031291 } } . ?i property:P361 resource:Q6675667 } } . FILTER ( ?d > ?q ) }
Looney Tunes: Unleashed
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation part of
type work of art
type release
action count
action filter_multi_types
action find_reverse
entity Looney Tunes: Unleashed
relation part of
type fictional humanoid
type release
[[{'concept': 'fictional humanoid'}, {'concept': 'release'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?t WHERE { { ?e property:part_of ?t . ?e rdf:type ontology:release . ?t rdf:type ontology:work_of_art } UNION { ?t rdf:type ontology:work_of_art . ?e rdf:type ontology:fictional_humanoid . ?e property:part_of ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { { ?i rdf:type ontology:fictional_humanoid } UNION { ?i rdf:type ontology:release } } . ?i property:part_of resource:Looney_Tunes:_Unleashed } } . FILTER ( ?d > ?q ) }
[]
work of art fictional humanoid release
SYSTEM
12
Q2312028 Q15624215 Q372959 Q222867 Q1623056 Q174811 Q472359 Q60072 Q7572454 Q7338317 Q7203413 Q152185
(c(Q6619679)|c(Q2031291),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q6675667
relation P361
type Q6619679
type Q2031291
[ANSWER]
[[{'concept': 'Q6619679'}, {'concept': 'Q2031291'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?t WHERE { { ?e property:P361 ?t . ?e rdf:type ontology:Q2031291 . ?t rdf:type ontology:Q838948 } UNION { ?t rdf:type ontology:Q838948 . ?e rdf:type ontology:Q6619679 . ?e property:P361 ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { { ?i rdf:type ontology:Q6619679 } UNION { ?i rdf:type ontology:Q2031291 } } . ?i property:P361 resource:Q6675667 } } . FILTER ( ?d > ?q ) }
Star Spangled Rhythm Lucy The Towering Inferno 2 Fast 2 Furious The Fighting Temptations Up El Cantante The Sound of Music Space Pirate Captain Harlock Rivers and Tides Playing for Keeps The Legend of Lucy Keyes
12
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation part of
type work of art
type release
action count
action filter_multi_types
action find_reverse
entity Looney Tunes: Unleashed
relation part of
type fictional humanoid
type release
[[{'concept': 'fictional humanoid'}, {'concept': 'release'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?t WHERE { { ?e property:part_of ?t . ?e rdf:type ontology:release . ?t rdf:type ontology:work_of_art } UNION { ?t rdf:type ontology:work_of_art . ?e rdf:type ontology:fictional_humanoid . ?e property:part_of ?t } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { { ?i rdf:type ontology:fictional_humanoid } UNION { ?i rdf:type ontology:release } } . ?i property:part_of resource:Looney_Tunes:_Unleashed } } . FILTER ( ?d > ?q ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q6503493
P361
Q838948 Q6619679 Q2031291
USER
And how about Law of the Sea?
(c(Q6619679)|c(Q2031291),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q6503493
relation P361
type Q6619679
type Q2031291
[[{'concept': 'Q6619679'}, {'concept': 'Q2031291'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) ?d WHERE { ?g rdf:type ?h . VALUES ( ?h ) { ( ontology:Q6619679 ) ( ontology:Q2031291 ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { { ?w rdf:type ontology:Q6619679 } UNION { ?w rdf:type ontology:Q2031291 } } . ?w property:P361 resource:Q6503493 } } . FILTER ( ?k > ?z ) }
Law of the Sea
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation part of
type work of art
type release
action count
action filter_multi_types
action find_reverse
entity Law of the Sea
relation part of
type fictional humanoid
type release
[[{'concept': 'fictional humanoid'}, {'concept': 'release'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) ?d WHERE { ?g rdf:type ?h . VALUES ( ?h ) { ( ontology:fictional_humanoid ) ( ontology:release ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { { ?w rdf:type ontology:fictional_humanoid } UNION { ?w rdf:type ontology:release } } . ?w property:part_of resource:Law_of_the_Sea } } . FILTER ( ?k > ?z ) }
[]
work of art fictional humanoid release
SYSTEM
12
Q2312028 Q15624215 Q372959 Q222867 Q1623056 Q174811 Q472359 Q60072 Q7572454 Q7338317 Q7203413 Q152185
(c(Q6619679)|c(Q2031291),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q6503493
relation P361
type Q6619679
type Q2031291
[ANSWER]
[[{'concept': 'Q6619679'}, {'concept': 'Q2031291'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) ?d WHERE { ?g rdf:type ?h . VALUES ( ?h ) { ( ontology:Q6619679 ) ( ontology:Q2031291 ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { { ?w rdf:type ontology:Q6619679 } UNION { ?w rdf:type ontology:Q2031291 } } . ?w property:P361 resource:Q6503493 } } . FILTER ( ?k > ?z ) }
Star Spangled Rhythm Lucy The Towering Inferno 2 Fast 2 Furious The Fighting Temptations Up El Cantante The Sound of Music Space Pirate Captain Harlock Rivers and Tides Playing for Keeps The Legend of Lucy Keyes
12
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation part of
type work of art
type release
action count
action filter_multi_types
action find_reverse
entity Law of the Sea
relation part of
type fictional humanoid
type release
[[{'concept': 'fictional humanoid'}, {'concept': 'release'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) ?d WHERE { ?g rdf:type ?h . VALUES ( ?h ) { ( ontology:fictional_humanoid ) ( ontology:release ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { { ?w rdf:type ontology:fictional_humanoid } UNION { ?w rdf:type ontology:release } } . ?w property:part_of resource:Law_of_the_Sea } } . FILTER ( ?k > ?z ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3051699
P915
Q56061
USER
Which location was Els Nens Salvatges filmed ?
(Q3051699,P915,c(Q56061))
action filter_type
action find
entity Q3051699
relation P915
type Q56061
['Q3051699', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q3051699 property:P915 ?h . ?h rdf:type ontology:Q56061 }
Els Nens Salvatges
action filter_type
action find
entity Els Nens Salvatges
relation filming location
type administrative territorial entity
['Els Nens Salvatges', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Els_Nens_Salvatges property:filming_location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q3051699,P915,c(Q56061))
action filter_type
action find
entity Q3051699
relation P915
type Q56061
Els Nens Salvatges was filmed in [ANSWER]
['Q3051699', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q3051699 property:P915 ?h . ?h rdf:type ontology:Q56061 }
Barcelona
Els Nens Salvatges was filmed in Barcelona
Barcelona
action filter_type
action find
entity Els Nens Salvatges
relation filming location
type administrative territorial entity
['Els Nens Salvatges', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Els_Nens_Salvatges property:filming_location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2564128
Q56061
USER
And what about Dark Skies?
(Q2564128,P915,c(Q56061))
action filter_type
action find
entity Q2564128
relation P915
type Q56061
['Q2564128', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q2564128 property:P915 ?s }
Dark Skies
action filter_type
action find
entity Dark Skies
relation filming location
type administrative territorial entity
['Dark Skies', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Dark_Skies property:filming_location ?s }
[]
administrative territorial entity
Q65
SYSTEM
Los Angeles
Q65
(Q2564128,P915,c(Q56061))
action filter_type
action find
entity Q2564128
relation P915
type Q56061
[ANSWER]
['Q2564128', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q2564128 property:P915 ?s }
Los Angeles
Los Angeles
action filter_type
action find
entity Dark Skies
relation filming location
type administrative territorial entity
['Dark Skies', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Dark_Skies property:filming_location ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2564128
P462
Q1075
USER
Which color is associated with that work of art ?
(Q65,P462,c(Q1075))
action filter_type
action find
entity Q2564128
relation P462
type Q1075
['Q65', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?m WHERE { resource:Q2564128 property:P462 ?m . ?m rdf:type ontology:Q1075 }
Dark Skies
action filter_type
action find
entity Dark Skies
relation color
type color
['Los Angeles', 'color', {'concept': 'color'}]
SELECT DISTINCT ?m WHERE { resource:Dark_Skies property:color ?m . ?m rdf:type ontology:color }
[]
color
Q22006653
SYSTEM
color
Q22006653
(Q65,P462,c(Q1075))
action filter_type
action find
entity Q2564128
relation P462
type Q1075
The [ANSWER] is associated with that work of art
['Q65', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?m WHERE { resource:Q2564128 property:P462 ?m . ?m rdf:type ontology:Q1075 }
color
The color is associated with that work of art
color
action filter_type
action find
entity Dark Skies
relation color
type color
['Los Angeles', 'color', {'concept': 'color'}]
SELECT DISTINCT ?m WHERE { resource:Dark_Skies property:color ?m . ?m rdf:type ontology:color }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q65 Q170322
P609
Q34442
USER
How many roads are Los Angeles or Qingdao a terminus location of ?
(c(Q34442),P609,Q65) (c(Q34442),P609,Q170322)
action count
action union
action filter_type
action find_reverse
entity Q65
relation P609
type Q34442
action filter_type
action find_reverse
entity Q170322
relation P609
type Q34442
[{'concept': 'Q34442'}, 'P609', 'Q65'] [{'concept': 'Q34442'}, 'P609', 'Q170322']
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { ?g property:P609 ?c . VALUES ( ?c ) { ( resource:Q65 ) ( resource:Q170322 ) } }
Los Angeles Qingdao
action count
action union
action filter_type
action find_reverse
entity Los Angeles
relation terminus location
type road
action filter_type
action find_reverse
entity Qingdao
relation terminus location
type road
[{'concept': 'road'}, 'terminus location', 'Los Angeles'] [{'concept': 'road'}, 'terminus location', 'Qingdao']
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { ?g property:terminus_location ?c . VALUES ( ?c ) { ( resource:Los_Angeles ) ( resource:Qingdao ) } }
[]
road
SYSTEM
3
Q785396 Q785402 Q10943788
(c(Q34442),P609,Q65) (c(Q34442),P609,Q170322)
action count
action union
action filter_type
action find_reverse
entity Q65
relation P609
type Q34442
action filter_type
action find_reverse
entity Q170322
relation P609
type Q34442
[ANSWER]
[{'concept': 'Q34442'}, 'P609', 'Q65'] [{'concept': 'Q34442'}, 'P609', 'Q170322']
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { ?g property:P609 ?c . VALUES ( ?c ) { ( resource:Q65 ) ( resource:Q170322 ) } }
G22 Qingdao–Lanzhou Expressway G20 Qingdao–Yinchuan Expressway G1813 Weihai–Qingdao Expressway
3
action count
action union
action filter_type
action find_reverse
entity Los Angeles
relation terminus location
type road
action filter_type
action find_reverse
entity Qingdao
relation terminus location
type road
[{'concept': 'road'}, 'terminus location', 'Los Angeles'] [{'concept': 'road'}, 'terminus location', 'Qingdao']
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { ?g property:terminus_location ?c . VALUES ( ?c ) { ( resource:Los_Angeles ) ( resource:Qingdao ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q65
P190
Q56061
USER
Which administrative territories are twin cities of Los Angeles ?
(Q65,P190,c(Q56061))
action filter_type
action find
entity Q65
relation P190
type Q56061
['Q65', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q65 property:P190 ?u . ?u rdf:type ontology:Q56061 }
Los Angeles
action filter_type
action find
entity Los Angeles
relation sister city
type administrative territorial entity
['Los Angeles', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Los_Angeles property:sister_city ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q1524 Q1867
SYSTEM
Berlin, Athens, Taipei
Q24639 Q1156 Q3881 Q1489 Q3630 Q938802 Q134762 Q18125 Q3820 Q1524 Q340 Q37100 Q84 Q1867 Q171639 Q64 Q23564 Q81788 Q4115712 Q1479
(Q65,P190,c(Q56061))
action filter_type
action find
entity Q65
relation P190
type Q56061
[ANSWERS] are twin cities of Los Angeles
['Q65', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q65 property:P190 ?u . ?u rdf:type ontology:Q56061 }
Vancouver Mumbai Lusaka Mexico City Jakarta Santa Maria degli Angeli Eilat Manchester Beirut Athens Montreal Auckland London Taipei Ashdod Berlin Podgorica Giza Kaunas Bordeaux
Berlin, Athens and Taipei are twin cities of Los Angeles
Berlin Athens Taipei
action filter_type
action find
entity Los Angeles
relation sister city
type administrative territorial entity
['Los Angeles', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Los_Angeles property:sister_city ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q65
Q515
USER
And which city?
(Q65,P190,c(Q515))
action filter_type
action find
entity Q65
relation P190
type Q515
['Q65', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { resource:Q65 property:P190 ?i . ?i rdf:type ontology:Q515 }
Los Angeles
action filter_type
action find
entity Los Angeles
relation sister city
type city
['Los Angeles', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { resource:Los_Angeles property:sister_city ?i . ?i rdf:type ontology:city }
[]
city
Q1953 Q3616 Q16520
SYSTEM
Yerevan, Tehran, Busan
Q16520 Q1508 Q3616 Q1953
(Q65,P190,c(Q515))
action filter_type
action find
entity Q65
relation P190
type Q515
[ANSWERS]
['Q65', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { resource:Q65 property:P190 ?i . ?i rdf:type ontology:Q515 }
Busan Makati Tehran Yerevan
Yerevan Tehran Busan
action filter_type
action find
entity Los Angeles
relation sister city
type city
['Los Angeles', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { resource:Los_Angeles property:sister_city ?i . ?i rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q65
P190
Q56061
USER
Are Los Angeles partner town of those cities ?
(Q65,P190,Q1953) (Q65,P190,Q3616) (Q65,P190,Q16520)
action is_in
entity prev_answer
action find
entity Q65
relation P190
['Q65', 'P190', 'Q1953'] ['Q65', 'P190', 'Q3616'] ['Q65', 'P190', 'Q16520']
ASK WHERE { VALUES ( ?v ) { ( resource:Q16520 ) ( resource:Q1508 ) ( resource:Q3616 ) } . resource:Q65 property:P190 ?v }
Los Angeles
action is_in
entity prev_answer
action find
entity Los Angeles
relation sister city
['Los Angeles', 'sister city', 'Yerevan'] ['Los Angeles', 'sister city', 'Tehran'] ['Los Angeles', 'sister city', 'Busan']
ASK WHERE { VALUES ( ?v ) { ( resource:Busan ) ( resource:Makati ) ( resource:Tehran ) } . resource:Los_Angeles property:sister_city ?v }
[]
administrative territorial entity
SYSTEM
YES
(Q65,P190,Q1953) (Q65,P190,Q3616) (Q65,P190,Q16520)
action is_in
entity prev_answer
action find
entity Q65
relation P190
[ANSWER]
['Q65', 'P190', 'Q1953'] ['Q65', 'P190', 'Q3616'] ['Q65', 'P190', 'Q16520']
ASK WHERE { VALUES ( ?v ) { ( resource:Q16520 ) ( resource:Q1508 ) ( resource:Q3616 ) } . resource:Q65 property:P190 ?v }
Yes
action is_in
entity prev_answer
action find
entity Los Angeles
relation sister city
['Los Angeles', 'sister city', 'Yerevan'] ['Los Angeles', 'sister city', 'Tehran'] ['Los Angeles', 'sister city', 'Busan']
ASK WHERE { VALUES ( ?v ) { ( resource:Busan ) ( resource:Makati ) ( resource:Tehran ) } . resource:Los_Angeles property:sister_city ?v }
[]