Simple Question (Direct)
Simple Question
Q3548533
P495
Q15617994
USER
Which administrative territory is the origin of A Legionnaire ?
(Q3548533,P495,c(Q15617994))
action filter_type
action find
entity Q3548533
relation P495
type Q15617994
['Q3548533', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q3548533 property:P495 ?m . ?m rdf:type ontology:Q15617994 }
A Legionnaire
action filter_type
action find
entity A Legionnaire
relation country of origin
type designation for an administrative territorial entity
['A Legionnaire', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:A_Legionnaire property:country_of_origin ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3548533,P495,c(Q15617994))
action filter_type
action find
entity Q3548533
relation P495
type Q15617994
[ANSWER] is the origin of A Legionnaire
['Q3548533', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q3548533 property:P495 ?m . ?m rdf:type ontology:Q15617994 }
France
France is the origin of A Legionnaire
France
action filter_type
action find
entity A Legionnaire
relation country of origin
type designation for an administrative territorial entity
['A Legionnaire', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:A_Legionnaire property:country_of_origin ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3548533
P58
Q502895
USER
Who wrote the screenplay for A Legionnaire ?
(Q3548533,P58,c(Q502895))
action filter_type
action find
entity Q3548533
relation P58
type Q502895
['Q3548533', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q3548533 property:P58 ?v }
A Legionnaire
action filter_type
action find
entity A Legionnaire
relation screenwriter
type common name
['A Legionnaire', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:A_Legionnaire property:screenwriter ?v }
[]
common name
Q3371253
SYSTEM
Paul Fékété
Q3371253
(Q3548533,P58,c(Q502895))
action filter_type
action find
entity Q3548533
relation P58
type Q502895
[ANSWER] wrote the screenplay for A Legionnaire
['Q3548533', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q3548533 property:P58 ?v }
Paul Fékété
Paul Fékété wrote the screenplay for A Legionnaire
Paul Fékété
action filter_type
action find
entity A Legionnaire
relation screenwriter
type common name
['A Legionnaire', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:A_Legionnaire property:screenwriter ?v }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3854007
Q502895
USER
And how about Be My Star?
(Q3854007,P58,c(Q502895))
action filter_type
action find
entity Q3854007
relation P58
type Q502895
['Q3854007', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q3854007 property:P58 ?m . ?m rdf:type ontology:Q502895 }
Be My Star
action filter_type
action find
entity Be My Star
relation screenwriter
type common name
['Be My Star', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Be_My_Star property:screenwriter ?m . ?m rdf:type ontology:common_name }
[]
common name
Q101712
SYSTEM
Valeska Grisebach
Q101712
(Q3854007,P58,c(Q502895))
action filter_type
action find
entity Q3854007
relation P58
type Q502895
[ANSWER] about Be My Star And
['Q3854007', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q3854007 property:P58 ?m . ?m rdf:type ontology:Q502895 }
Valeska Grisebach
Valeska Grisebach about Be My Star And
Valeska Grisebach
action filter_type
action find
entity Be My Star
relation screenwriter
type common name
['Be My Star', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Be_My_Star property:screenwriter ?m . ?m rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12026559 Q3548533
P840 P19
Q515
USER
Which cities are A Legionnaire set in or were Josef Rous born ?
OR((Q3548533,P840,c(Q515)), (Q12026559,P19,c(Q515)))
action filter_type
action union
action find
entity Q3548533
relation P840
action find
entity Q12026559
relation P19
type Q515
{'OR': [['Q3548533', 'P840', {'concept': 'Q515'}], ['Q12026559', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q3548533 property:P840 ?a } UNION { resource:Q12026559 property:P19 ?a } } . ?a rdf:type ontology:Q515 }
Josef Rous A Legionnaire
action filter_type
action union
action find
entity A Legionnaire
relation narrative location
action find
entity Josef Rous
relation place of birth
type city
{'OR': [['A Legionnaire', 'narrative location', {'concept': 'city'}], ['Josef Rous', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?a WHERE { { { resource:A_Legionnaire property:narrative_location ?a } UNION { resource:Josef_Rous property:place_of_birth ?a } } . ?a rdf:type ontology:city }
[]
city
Q23482 Q158272
SYSTEM
Marseille, Žamberk
Q23482 Q158272
OR((Q3548533,P840,c(Q515)), (Q12026559,P19,c(Q515)))
action filter_type
action union
action find
entity Q3548533
relation P840
action find
entity Q12026559
relation P19
type Q515
A Legionnaire are set born in [ANSWERS]
{'OR': [['Q3548533', 'P840', {'concept': 'Q515'}], ['Q12026559', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q3548533 property:P840 ?a } UNION { resource:Q12026559 property:P19 ?a } } . ?a rdf:type ontology:Q515 }
Marseille Žamberk
A Legionnaire are set born in Marseille and Žamberk
Marseille Žamberk
action filter_type
action union
action find
entity A Legionnaire
relation narrative location
action find
entity Josef Rous
relation place of birth
type city
{'OR': [['A Legionnaire', 'narrative location', {'concept': 'city'}], ['Josef Rous', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?a WHERE { { { resource:A_Legionnaire property:narrative_location ?a } UNION { resource:Josef_Rous property:place_of_birth ?a } } . ?a rdf:type ontology:city }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that city a part of ?
(Q158272,P17,c(Q15617994))
['Q158272', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q158272 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Žamberk', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Žamberk property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q158272
SYSTEM
Did you mean Žamberk ?
(Q23482,P17,c(Q15617994)) (Q158272,P17,c(Q15617994))
[ANSWER]
['Q23482', 'P17', {'concept': 'Q15617994'}] ['Q158272', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q158272 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Žamberk ?
Žamberk
['Marseille', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Žamberk', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Žamberk property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q158272,P17,c(Q15617994))
['Q158272', 'P17', {'concept': 'Q15617994'}]
['Žamberk', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q213
(Q158272,P17,c(Q15617994))
[ANSWER]
['Q158272', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q158272 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Czech Republic
1
['Žamberk', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Žamberk property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q101712
P57
Q838948
USER
Which works of art did Valeska Grisebach direct ?
(c(Q838948),P57,Q101712)
action filter_type
action find_reverse
entity Q101712
relation P57
type Q838948
[{'concept': 'Q838948'}, 'P57', 'Q101712']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q838948 . ?y property:P57 resource:Q101712 }
Valeska Grisebach
action filter_type
action find_reverse
entity Valeska Grisebach
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Valeska Grisebach']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:work_of_art . ?y property:director resource:Valeska_Grisebach }
[]
work of art
Q3705956 Q3854007
SYSTEM
Longing, Be My Star
Q3705956 Q3854007
(c(Q838948),P57,Q101712)
action filter_type
action find_reverse
entity Q101712
relation P57
type Q838948
Valeska Grisebach directed [ANSWERS]
[{'concept': 'Q838948'}, 'P57', 'Q101712']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q838948 . ?y property:P57 resource:Q101712 }
Longing Be My Star
Valeska Grisebach directed Longing and Be My Star
Longing Be My Star
action filter_type
action find_reverse
entity Valeska Grisebach
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Valeska Grisebach']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:work_of_art . ?y property:director resource:Valeska_Grisebach }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q23482
P47
Q20667921
USER
Which french administrative divisions share border with Marseille ?
(Q23482,P47,c(Q20667921))
action filter_type
action find
entity Q23482
relation P47
type Q20667921
['Q23482', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q23482 property:P47 ?e . ?e rdf:type ontology:Q20667921 }
Marseille
action filter_type
action find
entity Marseille
relation shares border with
type type of french administrative division
['Marseille', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:Marseille property:shares_border_with ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q269862 Q184047 Q243100
SYSTEM
Allauch, Aubagne, Les Pennes-Mirabeau
Q640934 Q243002 Q243100 Q269862 Q389455 Q533703 Q640736 Q753846 Q184047
(Q23482,P47,c(Q20667921))
action filter_type
action find
entity Q23482
relation P47
type Q20667921
[ANSWERS] share border with Marseille
['Q23482', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q23482 property:P47 ?e . ?e rdf:type ontology:Q20667921 }
Simiane-Collongue Cassis Les Pennes-Mirabeau Allauch La Penne-sur-Huveaune Plan-de-Cuques Le Rove Septèmes-les-Vallons Aubagne
Allauch, Aubagne and Les Pennes-Mirabeau share border with Marseille
Allauch Aubagne Les Pennes-Mirabeau
action filter_type
action find
entity Marseille
relation shares border with
type type of french administrative division
['Marseille', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:Marseille property:shares_border_with ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q269862 Q184047 Q243100
P47
Q20667921
USER
Which french administrative divisions have an adjacent border with Allauch, Aubagne and Les Pennes-Mirabeau ?
(c(Q20667921),P47,Q269862) (c(Q20667921),P47,Q184047) (c(Q20667921),P47,Q243100)
action union
action filter_type
action find
entity Q269862
relation P47
type Q20667921
action filter_type
action find
entity Q184047
relation P47
type Q20667921
action filter_type
action find
entity Q243100
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q269862'] [{'concept': 'Q20667921'}, 'P47', 'Q184047'] [{'concept': 'Q20667921'}, 'P47', 'Q243100']
SELECT DISTINCT ?l WHERE { { ?l rdf:type ontology:Q20667921 . resource:Q269862 property:P47 ?l } UNION { resource:Q184047 property:P47 ?l . ?l rdf:type ontology:Q20667921 } }
Allauch Aubagne Les Pennes-Mirabeau
action union
action filter_type
action find
entity Allauch
relation shares border with
type type of french administrative division
action filter_type
action find
entity Aubagne
relation shares border with
type type of french administrative division
action filter_type
action find
entity Les Pennes-Mirabeau
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Allauch'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Aubagne'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Les Pennes-Mirabeau']
SELECT DISTINCT ?l WHERE { { ?l rdf:type ontology:type_of_french_administrative_division . resource:Allauch property:shares_border_with ?l } UNION { resource:Aubagne property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division } }
[]
type of french administrative division
Q269862 Q184047 Q640776
SYSTEM
Allauch, Aubagne, Peypin
Q474020 Q184047 Q640891 Q640776 Q533703 Q640919 Q675884 Q389455 Q596771 Q269862 Q640919 Q243002 Q264277 Q473998 Q640703 Q205709 Q640736 Q117438 Q753846 Q384367
(c(Q20667921),P47,Q269862) (c(Q20667921),P47,Q184047) (c(Q20667921),P47,Q243100)
action union
action filter_type
action find
entity Q269862
relation P47
type Q20667921
action filter_type
action find
entity Q184047
relation P47
type Q20667921
action filter_type
action find
entity Q243100
relation P47
type Q20667921
[ANSWERS] have an adjacent border with Allauch, Aubagne and Les Pennes-Mirabeau
[{'concept': 'Q20667921'}, 'P47', 'Q269862'] [{'concept': 'Q20667921'}, 'P47', 'Q184047'] [{'concept': 'Q20667921'}, 'P47', 'Q243100']
SELECT DISTINCT ?l WHERE { { ?l rdf:type ontology:Q20667921 . resource:Q269862 property:P47 ?l } UNION { resource:Q184047 property:P47 ?l . ?l rdf:type ontology:Q20667921 } }
Cadolive Aubagne Mimet Peypin Plan-de-Cuques Roquevaire Roquefort-la-Bédoule La Penne-sur-Huveaune Carnoux-en-Provence Allauch Roquevaire Cassis Gémenos Gignac-la-Nerthe Saint-Victoret Vitrolles Le Rove Bouc-Bel-Air Septèmes-les-Vallons Cabriès
Allauch, Aubagne and Peypin have an adjacent border with Allauch, Aubagne and Les Pennes-Mirabeau
Allauch Aubagne Peypin
action union
action filter_type
action find
entity Allauch
relation shares border with
type type of french administrative division
action filter_type
action find
entity Aubagne
relation shares border with
type type of french administrative division
action filter_type
action find
entity Les Pennes-Mirabeau
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Allauch'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Aubagne'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Les Pennes-Mirabeau']
SELECT DISTINCT ?l WHERE { { ?l rdf:type ontology:type_of_french_administrative_division . resource:Allauch property:shares_border_with ?l } UNION { resource:Aubagne property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q269862 Q184047 Q640776
P17
Q15617994
USER
Which administrative territories are Allauch, Aubagne and Peypin situated in ?
(Q269862,P17,c(Q15617994)) (Q184047,P17,c(Q15617994)) (Q640776,P17,c(Q15617994))
action union
action filter_type
action find
entity Q269862
relation P17
type Q15617994
action filter_type
action find
entity Q184047
relation P17
type Q15617994
action filter_type
action find
entity Q640776
relation P17
type Q15617994
['Q269862', 'P17', {'concept': 'Q15617994'}] ['Q184047', 'P17', {'concept': 'Q15617994'}] ['Q640776', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { resource:Q184047 property:P17 ?l . ?l rdf:type ontology:Q15617994 } UNION { resource:Q269862 property:P17 ?l . ?l rdf:type ontology:Q15617994 } }
Allauch Aubagne Peypin
action union
action filter_type
action find
entity Allauch
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Aubagne
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Peypin
relation country
type designation for an administrative territorial entity
['Allauch', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Aubagne', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Peypin', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { resource:Aubagne property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Allauch property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q142 Q142 Q142
SYSTEM
France
Q142 Q142 Q142
(Q269862,P17,c(Q15617994)) (Q184047,P17,c(Q15617994)) (Q640776,P17,c(Q15617994))
action union
action filter_type
action find
entity Q269862
relation P17
type Q15617994
action filter_type
action find
entity Q184047
relation P17
type Q15617994
action filter_type
action find
entity Q640776
relation P17
type Q15617994
Allauch , Aubagne and Peypin are situated in [ANSWER], [ANSWER] and [ANSWER]
['Q269862', 'P17', {'concept': 'Q15617994'}] ['Q184047', 'P17', {'concept': 'Q15617994'}] ['Q640776', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { resource:Q184047 property:P17 ?l . ?l rdf:type ontology:Q15617994 } UNION { resource:Q269862 property:P17 ?l . ?l rdf:type ontology:Q15617994 } }
France France France
Allauch , Aubagne and Peypin are situated in France, France and France
France France France
action union
action filter_type
action find
entity Allauch
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Aubagne
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Peypin
relation country
type designation for an administrative territorial entity
['Allauch', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Aubagne', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Peypin', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { resource:Aubagne property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Allauch property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]