Simple Question (Direct)
Simple Question
Q1424889
P58
Q502895
USER
Who wrote the script for Crustacés et Coquillages ?
(Q1424889,P58,c(Q502895))
action filter_type
action find
entity Q1424889
relation P58
type Q502895
['Q1424889', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q1424889 property:P58 ?n . ?n rdf:type ontology:Q502895 }
Crustacés et Coquillages
action filter_type
action find
entity Crustacés et Coquillages
relation screenwriter
type common name
['Crustacés et Coquillages', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Crustacés_et_Coquillages property:screenwriter ?n . ?n rdf:type ontology:common_name }
[]
common name
Q1757186 Q1889351
SYSTEM
Jacques Martineau, Olivier Ducastel
Q1757186 Q1889351
(Q1424889,P58,c(Q502895))
action filter_type
action find
entity Q1424889
relation P58
type Q502895
[ANSWERS] wrote the script for Crustacés et Coquillages
['Q1424889', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q1424889 property:P58 ?n . ?n rdf:type ontology:Q502895 }
Jacques Martineau Olivier Ducastel
Jacques Martineau and Olivier Ducastel wrote the script for Crustacés et Coquillages
Jacques Martineau Olivier Ducastel
action filter_type
action find
entity Crustacés et Coquillages
relation screenwriter
type common name
['Crustacés et Coquillages', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Crustacés_et_Coquillages property:screenwriter ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1757186
P451
Q502895
USER
Who is the domestic partner of Jacques Martineau ?
(Q1757186,P451,c(Q502895))
action filter_type
action find
entity Q1757186
relation P451
type Q502895
['Q1757186', 'P451', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q1757186 property:P451 ?i . ?i rdf:type ontology:Q502895 }
Jacques Martineau
action filter_type
action find
entity Jacques Martineau
relation partner
type common name
['Jacques Martineau', 'partner', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Jacques_Martineau property:partner ?i . ?i rdf:type ontology:common_name }
[]
common name
Q1889351
SYSTEM
Olivier Ducastel
Q1889351
(Q1757186,P451,c(Q502895))
action filter_type
action find
entity Q1757186
relation P451
type Q502895
The domestic partner of Jacques Martineau is [ANSWER]
['Q1757186', 'P451', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q1757186 property:P451 ?i . ?i rdf:type ontology:Q502895 }
Olivier Ducastel
The domestic partner of Jacques Martineau is Olivier Ducastel
Olivier Ducastel
action filter_type
action find
entity Jacques Martineau
relation partner
type common name
['Jacques Martineau', 'partner', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Jacques_Martineau property:partner ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1889351
P161
Q838948
USER
Which work of art has that person in its star cast ?
(c(Q838948),P161,Q1889351)
action filter_type
action find_reverse
entity Q1889351
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q1889351']
SELECT DISTINCT ?i WHERE { ?i property:P161 resource:Q1889351 . ?i rdf:type ontology:Q838948 }
Olivier Ducastel
action filter_type
action find_reverse
entity Olivier Ducastel
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Olivier Ducastel']
SELECT DISTINCT ?i WHERE { ?i property:cast_member resource:Olivier_Ducastel . ?i rdf:type ontology:work_of_art }
[]
work of art
Q16546497
SYSTEM
De la Cage aux Roseaux
Q16546497
(c(Q838948),P161,Q1889351)
action filter_type
action find_reverse
entity Q1889351
relation P161
type Q838948
[ANSWER] has that person in its star cast
[{'concept': 'Q838948'}, 'P161', 'Q1889351']
SELECT DISTINCT ?i WHERE { ?i property:P161 resource:Q1889351 . ?i rdf:type ontology:Q838948 }
De la Cage aux Roseaux
De la Cage aux Roseaux has that person in its star cast
De la Cage aux Roseaux
action filter_type
action find_reverse
entity Olivier Ducastel
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Olivier Ducastel']
SELECT DISTINCT ?i WHERE { ?i property:cast_member resource:Olivier_Ducastel . ?i rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q62831 Q1889351
P19 P20
Q515
USER
Which cities were Olivier Ducastel born at or are the places of death of Ludwig Büchner ?
OR((Q1889351,P19,c(Q515)), (Q62831,P20,c(Q515)))
action filter_type
action union
action find
entity Q1889351
relation P19
action find
entity Q62831
relation P20
type Q515
{'OR': [['Q1889351', 'P19', {'concept': 'Q515'}], ['Q62831', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1889351 property:P19 ?g } UNION { resource:Q62831 property:P20 ?g } } . ?g rdf:type ontology:Q515 }
Ludwig Büchner Olivier Ducastel
action filter_type
action union
action find
entity Olivier Ducastel
relation place of birth
action find
entity Ludwig Büchner
relation place of death
type city
{'OR': [['Olivier Ducastel', 'place of birth', {'concept': 'city'}], ['Ludwig Büchner', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Olivier_Ducastel property:place_of_birth ?g } UNION { resource:Ludwig_Büchner property:place_of_death ?g } } . ?g rdf:type ontology:city }
[]
city
Q456 Q2973
SYSTEM
Lyon, Darmstadt
Q456 Q2973
OR((Q1889351,P19,c(Q515)), (Q62831,P20,c(Q515)))
action filter_type
action union
action find
entity Q1889351
relation P19
action find
entity Q62831
relation P20
type Q515
[ANSWERS] Olivier Ducastel were born at or are the places of death of Ludwig Büchner
{'OR': [['Q1889351', 'P19', {'concept': 'Q515'}], ['Q62831', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1889351 property:P19 ?g } UNION { resource:Q62831 property:P20 ?g } } . ?g rdf:type ontology:Q515 }
Lyon Darmstadt
Lyon and Darmstadt Olivier Ducastel were born at or are the places of death of Ludwig Büchner
Lyon Darmstadt
action filter_type
action union
action find
entity Olivier Ducastel
relation place of birth
action find
entity Ludwig Büchner
relation place of death
type city
{'OR': [['Olivier Ducastel', 'place of birth', {'concept': 'city'}], ['Ludwig Büchner', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Olivier_Ducastel property:place_of_birth ?g } UNION { resource:Ludwig_Büchner property:place_of_death ?g } } . ?g rdf:type ontology:city }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P206
Q1267889 Q515
USER
How many cities are situated in the neighbourhood of around the same number of waterways as that city ?
(c(Q515),P206,c(Q1267889))
[{'concept': 'Q515'}, 'P206', {'concept': 'Q1267889'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P206 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q1267889 }
[{'concept': 'city'}, 'located next to body of water', {'concept': 'waterway'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:located_next_to_body_of_water ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:waterway }
[]
waterway city
Comparative|Count over More/Less|Single entity type|Clarification
Q2973
SYSTEM
Did you mean Darmstadt ?
(c(Q515),P206,c(Q1267889))
[ANSWER]
[{'concept': 'Q515'}, 'P206', {'concept': 'Q1267889'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P206 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q1267889 }
Did you mean Darmstadt ?
Darmstadt
[{'concept': 'city'}, 'located next to body of water', {'concept': 'waterway'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:located_next_to_body_of_water ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:waterway }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q515),P206,c(Q1267889))
[{'concept': 'Q515'}, 'P206', {'concept': 'Q1267889'}]
[{'concept': 'city'}, 'located next to body of water', {'concept': 'waterway'}]
[]
SYSTEM
2
Q3826 Q23661
(c(Q515),P206,c(Q1267889))
[ANSWER]
[{'concept': 'Q515'}, 'P206', {'concept': 'Q1267889'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P206 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q1267889 }
Muscat Wellington
2
[{'concept': 'city'}, 'located next to body of water', {'concept': 'waterway'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:located_next_to_body_of_water ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:waterway }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2973
P190
Q13220204 Q618779
USER
How many administrative country subdivisions or awards are sister towns of Darmstadt ?
(Q2973,P190,c(Q13220204)) (Q2973,P190,c(Q618779))
action count
action union
action filter_type
action find
entity Q2973
relation P190
type Q13220204
action filter_type
action find
entity Q2973
relation P190
type Q618779
['Q2973', 'P190', {'concept': 'Q13220204'}] ['Q2973', 'P190', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { ?i rdf:type ?r . VALUES ( ?r ) { ( ontology:Q13220204 ) ( ontology:Q618779 ) } }
Darmstadt
action count
action union
action filter_type
action find
entity Darmstadt
relation sister city
type second-level administrative country subdivision
action filter_type
action find
entity Darmstadt
relation sister city
type award
['Darmstadt', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Darmstadt', 'sister city', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { ?i rdf:type ?r . VALUES ( ?r ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:award ) } }
[]
second-level administrative country subdivision award
SYSTEM
3
Q156711 Q13298 Q972
(Q2973,P190,c(Q13220204)) (Q2973,P190,c(Q618779))
action count
action union
action filter_type
action find
entity Q2973
relation P190
type Q13220204
action filter_type
action find
entity Q2973
relation P190
type Q618779
[ANSWER]
['Q2973', 'P190', {'concept': 'Q13220204'}] ['Q2973', 'P190', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { ?i rdf:type ?r . VALUES ( ?r ) { ( ontology:Q13220204 ) ( ontology:Q618779 ) } }
Uzhhorod Graz Alkmaar
3
action count
action union
action filter_type
action find
entity Darmstadt
relation sister city
type second-level administrative country subdivision
action filter_type
action find
entity Darmstadt
relation sister city
type award
['Darmstadt', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Darmstadt', 'sister city', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { ?i rdf:type ?r . VALUES ( ?r ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:award ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q191015
P17
Q15617994
USER
Which administrative territory is Trakai situated in ?
(Q191015,P17,c(Q15617994))
action filter_type
action find
entity Q191015
relation P17
type Q15617994
['Q191015', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q191015 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Trakai
action filter_type
action find
entity Trakai
relation country
type designation for an administrative territorial entity
['Trakai', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Trakai property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q37
SYSTEM
Lithuania
Q37
(Q191015,P17,c(Q15617994))
action filter_type
action find
entity Q191015
relation P17
type Q15617994
Trakai is situated in [ANSWER]
['Q191015', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q191015 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Lithuania
Trakai is situated in Lithuania
Lithuania
action filter_type
action find
entity Trakai
relation country
type designation for an administrative territorial entity
['Trakai', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Trakai property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q191015
P190
Q56061
USER
Which administrative territories are sister towns of that one ?
(Q37,P190,c(Q56061))
action filter_type
action find
entity Q191015
relation P190
type Q56061
['Q37', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q191015 property:P190 ?r . ?r rdf:type ontology:Q56061 }
Trakai
action filter_type
action find
entity Trakai
relation sister city
type administrative territorial entity
['Lithuania', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Trakai property:sister_city ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q156726 Q802 Q7550
SYSTEM
Ivano-Frankivsk, Nowy Sącz, Lutsk
Q156726 Q14938 Q802 Q9997 Q7550
(Q37,P190,c(Q56061))
action filter_type
action find
entity Q191015
relation P190
type Q56061
[ANSWERS] are sister towns of that one
['Q37', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q191015 property:P190 ?r . ?r rdf:type ontology:Q56061 }
Ivano-Frankivsk Bernburg Nowy Sącz Borne Lutsk
Ivano-Frankivsk, Nowy Sącz and Lutsk are sister towns of that one
Ivano-Frankivsk Nowy Sącz Lutsk
action filter_type
action find
entity Trakai
relation sister city
type administrative territorial entity
['Lithuania', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Trakai property:sister_city ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6749997
P190
Q56061
USER
Are Manitoba Electoral Redistribution, 2008 a sister city of those ones ?
(Q6749997,P190,Q156726) (Q6749997,P190,Q802) (Q6749997,P190,Q7550)
action is_in
entity prev_answer
action find
entity Q6749997
relation P190
['Q6749997', 'P190', 'Q156726'] ['Q6749997', 'P190', 'Q802'] ['Q6749997', 'P190', 'Q7550']
ASK WHERE { resource:Q6749997 property:P190 ?d . VALUES ( ?d ) { ( resource:Q156726 ) ( resource:Q14938 ) ( resource:Q802 ) } }
Manitoba Electoral Redistribution, 2008
action is_in
entity prev_answer
action find
entity Manitoba Electoral Redistribution, 2008
relation sister city
['Manitoba Electoral Redistribution, 2008', 'sister city', 'Ivano-Frankivsk'] ['Manitoba Electoral Redistribution, 2008', 'sister city', 'Nowy Sącz'] ['Manitoba Electoral Redistribution, 2008', 'sister city', 'Lutsk']
ASK WHERE { resource:Manitoba_Electoral_Redistribution,_2008 property:sister_city ?d . VALUES ( ?d ) { ( resource:Ivano-Frankivsk ) ( resource:Bernburg ) ( resource:Nowy_Sącz ) } }
[]
administrative territorial entity
SYSTEM
NO
(Q6749997,P190,Q156726) (Q6749997,P190,Q802) (Q6749997,P190,Q7550)
action is_in
entity prev_answer
action find
entity Q6749997
relation P190
[ANSWER]
['Q6749997', 'P190', 'Q156726'] ['Q6749997', 'P190', 'Q802'] ['Q6749997', 'P190', 'Q7550']
ASK WHERE { resource:Q6749997 property:P190 ?d . VALUES ( ?d ) { ( resource:Q156726 ) ( resource:Q14938 ) ( resource:Q802 ) } }
No
action is_in
entity prev_answer
action find
entity Manitoba Electoral Redistribution, 2008
relation sister city
['Manitoba Electoral Redistribution, 2008', 'sister city', 'Ivano-Frankivsk'] ['Manitoba Electoral Redistribution, 2008', 'sister city', 'Nowy Sącz'] ['Manitoba Electoral Redistribution, 2008', 'sister city', 'Lutsk']
ASK WHERE { resource:Manitoba_Electoral_Redistribution,_2008 property:sister_city ?d . VALUES ( ?d ) { ( resource:Ivano-Frankivsk ) ( resource:Bernburg ) ( resource:Nowy_Sącz ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q13220204 Q15617994 Q515
USER
Which cities are the county seat of approximately 3 administrative country subdivisions and administrative territories ?
(c(Q515),P1376,c(Q13220204)|c(Q15617994))
action approx
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q15617994
value 3
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?x WHERE { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:Q13220204 ) ( ontology:Q15617994 ) } } GROUP BY ?x } . FILTER ( ?b = 3 ) }
action approx
action union
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
action find_tuple_counts
relation capital of
type city
type designation for an administrative territorial entity
value 3
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?x WHERE { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?x } . FILTER ( ?b = 3 ) }
[]
second-level administrative country subdivision designation for an administrative territorial entity city
Q7003
SYSTEM
Dijon
Q7003
(c(Q515),P1376,c(Q13220204)|c(Q15617994))
action approx
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q15617994
value 3
[ANSWER] is the county seat of approximately 3 administrative country subdivisions and administrative territories
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?x WHERE { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:Q13220204 ) ( ontology:Q15617994 ) } } GROUP BY ?x } . FILTER ( ?b = 3 ) }
Dijon
Dijon is the county seat of approximately 3 administrative country subdivisions and administrative territories
Dijon
action approx
action union
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
action find_tuple_counts
relation capital of
type city
type designation for an administrative territorial entity
value 3
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?x WHERE { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?x } . FILTER ( ?b = 3 ) }
[]