Simple Question (Direct)
Simple Question
Q1872817
P27
Q15617994
USER
Which administrative territory is Gianni Comandini a civilian of ?
(Q1872817,P27,c(Q15617994))
action filter_type
action find
entity Q1872817
relation P27
type Q15617994
['Q1872817', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q1872817 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Gianni Comandini
action filter_type
action find
entity Gianni Comandini
relation country of citizenship
type designation for an administrative territorial entity
['Gianni Comandini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Gianni_Comandini property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q1872817,P27,c(Q15617994))
action filter_type
action find
entity Q1872817
relation P27
type Q15617994
[ANSWER] is Gianni Comandini a civilian of
['Q1872817', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q1872817 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Italy
Italy is Gianni Comandini a civilian of
Italy
action filter_type
action find
entity Gianni Comandini
relation country of citizenship
type designation for an administrative territorial entity
['Gianni Comandini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Gianni_Comandini property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1872817
P19
Q15617994
USER
Which administrative territory was that person born at ?
(Q38,P19,c(Q15617994))
action filter_type
action find
entity Q1872817
relation P19
type Q15617994
['Q38', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q1872817 property:P19 ?i . ?i rdf:type ontology:Q15617994 }
Gianni Comandini
action filter_type
action find
entity Gianni Comandini
relation place of birth
type designation for an administrative territorial entity
['Italy', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Gianni_Comandini property:place_of_birth ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q6662
SYSTEM
Cesena
Q6662
(Q38,P19,c(Q15617994))
action filter_type
action find
entity Q1872817
relation P19
type Q15617994
That person was born in [ANSWER]
['Q38', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q1872817 property:P19 ?i . ?i rdf:type ontology:Q15617994 }
Cesena
That person was born in Cesena
Cesena
action filter_type
action find
entity Gianni Comandini
relation place of birth
type designation for an administrative territorial entity
['Italy', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Gianni_Comandini property:place_of_birth ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6662 Q3836848
P19
Q502895
USER
Does Lorenza Ghinelli have birthplace at that administrative territory ?
(Q3836848,P19,Q6662)
action is_in
entity Q6662
action find
entity Q3836848
relation P19
['Q3836848', 'P19', 'Q6662']
ASK WHERE { resource:Q3836848 property:P19 resource:Q6662 }
Cesena Lorenza Ghinelli
action is_in
entity Cesena
action find
entity Lorenza Ghinelli
relation place of birth
['Lorenza Ghinelli', 'place of birth', 'Cesena']
ASK WHERE { resource:Lorenza_Ghinelli property:place_of_birth resource:Cesena }
[]
common name
SYSTEM
YES
(Q3836848,P19,Q6662)
action is_in
entity Q6662
action find
entity Q3836848
relation P19
[ANSWER]
['Q3836848', 'P19', 'Q6662']
ASK WHERE { resource:Q3836848 property:P19 resource:Q6662 }
Yes
action is_in
entity Cesena
action find
entity Lorenza Ghinelli
relation place of birth
['Lorenza Ghinelli', 'place of birth', 'Cesena']
ASK WHERE { resource:Lorenza_Ghinelli property:place_of_birth resource:Cesena }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6662
P190
Q20667921
USER
Which french administrative division is twin city of that administrative territory ?
action filter_type
action find
entity Q6662
relation P190
type Q20667921
SELECT DISTINCT ?q WHERE { resource:Q6662 property:P190 ?q . ?q rdf:type ontology:Q20667921 }
Cesena
action filter_type
action find
entity Cesena
relation sister city
type type of french administrative division
SELECT DISTINCT ?q WHERE { resource:Cesena property:sister_city ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q26849
SYSTEM
Vienne
Q26849
action filter_type
action find
entity Q6662
relation P190
type Q20667921
[ANSWER] is twin city of that administrative territory
SELECT DISTINCT ?q WHERE { resource:Q6662 property:P190 ?q . ?q rdf:type ontology:Q20667921 }
Vienne
Vienne is twin city of that administrative territory
Vienne
action filter_type
action find
entity Cesena
relation sister city
type type of french administrative division
SELECT DISTINCT ?q WHERE { resource:Cesena property:sister_city ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26849
P47
Q20667921
USER
Which french administrative divisions are adjacent to that one ?
(Q26849,P47,c(Q20667921))
action filter_type
action find
entity Q26849
relation P47
type Q20667921
['Q26849', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { resource:Q26849 property:P47 ?x . ?x rdf:type ontology:Q20667921 }
Vienne
action filter_type
action find
entity Vienne
relation shares border with
type type of french administrative division
['Vienne', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { resource:Vienne property:shares_border_with ?x . ?x rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1003900 Q1069558 Q477363
SYSTEM
Les Côtes-d'Arey, Estrablin, Ampuis
Q1069558 Q477363 Q1068542 Q1067719 Q1003900 Q507735 Q770710 Q37046 Q1389036 Q1068572 Q1615375 Q975602
(Q26849,P47,c(Q20667921))
action filter_type
action find
entity Q26849
relation P47
type Q20667921
[ANSWERS] are adjacent to that one
['Q26849', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?x WHERE { resource:Q26849 property:P47 ?x . ?x rdf:type ontology:Q20667921 }
Estrablin Ampuis Pont-Évêque Seyssuel Les Côtes-d'Arey Serpaize Sainte-Colombe, Rhône Jardin Saint-Romain-en-Gal Reventin-Vaugris Saint-Cyr-sur-le-Rhône Chuzelles
Les Côtes-d'Arey, Estrablin and Ampuis are adjacent to that one
Les Côtes-d'Arey Estrablin Ampuis
action filter_type
action find
entity Vienne
relation shares border with
type type of french administrative division
['Vienne', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?x WHERE { resource:Vienne property:shares_border_with ?x . ?x rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1726590
P47
Q20667921
USER
Are canton of Orezza-Alesani next to the border of those ones ?
(Q1726590,P47,Q1003900) (Q1726590,P47,Q1069558) (Q1726590,P47,Q477363)
action is_in
entity prev_answer
action find
entity Q1726590
relation P47
['Q1726590', 'P47', 'Q1003900'] ['Q1726590', 'P47', 'Q1069558'] ['Q1726590', 'P47', 'Q477363']
ASK WHERE { resource:Q1726590 property:P47 ?v . VALUES ( ?v ) { ( resource:Q1069558 ) ( resource:Q477363 ) ( resource:Q1068542 ) } }
canton of Orezza-Alesani
action is_in
entity prev_answer
action find
entity canton of Orezza-Alesani
relation shares border with
['canton of Orezza-Alesani', 'shares border with', "Les Côtes-d'Arey"] ['canton of Orezza-Alesani', 'shares border with', 'Estrablin'] ['canton of Orezza-Alesani', 'shares border with', 'Ampuis']
ASK WHERE { resource:canton_of_Orezza-Alesani property:shares_border_with ?v . VALUES ( ?v ) { ( resource:Estrablin ) ( resource:Ampuis ) ( resource:Pont-Évêque ) } }
[]
type of french administrative division
SYSTEM
NO
(Q1726590,P47,Q1003900) (Q1726590,P47,Q1069558) (Q1726590,P47,Q477363)
action is_in
entity prev_answer
action find
entity Q1726590
relation P47
[ANSWER]
['Q1726590', 'P47', 'Q1003900'] ['Q1726590', 'P47', 'Q1069558'] ['Q1726590', 'P47', 'Q477363']
ASK WHERE { resource:Q1726590 property:P47 ?v . VALUES ( ?v ) { ( resource:Q1069558 ) ( resource:Q477363 ) ( resource:Q1068542 ) } }
No
action is_in
entity prev_answer
action find
entity canton of Orezza-Alesani
relation shares border with
['canton of Orezza-Alesani', 'shares border with', "Les Côtes-d'Arey"] ['canton of Orezza-Alesani', 'shares border with', 'Estrablin'] ['canton of Orezza-Alesani', 'shares border with', 'Ampuis']
ASK WHERE { resource:canton_of_Orezza-Alesani property:shares_border_with ?v . VALUES ( ?v ) { ( resource:Estrablin ) ( resource:Ampuis ) ( resource:Pont-Évêque ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10372923 Q3836848
P27
Q15617994
USER
Which administrative territories are Lorenza Ghinelli or Sofia Martins de Souza a civilian of ?
OR((Q3836848,P27,c(Q15617994)), (Q10372923,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3836848
relation P27
action find
entity Q10372923
relation P27
type Q15617994
{'OR': [['Q3836848', 'P27', {'concept': 'Q15617994'}], ['Q10372923', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q10372923 property:P27 ?n } UNION { resource:Q3836848 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
Sofia Martins de Souza Lorenza Ghinelli
action filter_type
action union
action find
entity Lorenza Ghinelli
relation country of citizenship
action find
entity Sofia Martins de Souza
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lorenza Ghinelli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sofia Martins de Souza', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Sofia_Martins_de_Souza property:country_of_citizenship ?n } UNION { resource:Lorenza_Ghinelli property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q45
SYSTEM
Italy, Portugal
Q38 Q45
OR((Q3836848,P27,c(Q15617994)), (Q10372923,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3836848
relation P27
action find
entity Q10372923
relation P27
type Q15617994
[ANSWERS] are Lorenza Ghinelli or Sofia Martins de Souza a civilian of
{'OR': [['Q3836848', 'P27', {'concept': 'Q15617994'}], ['Q10372923', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q10372923 property:P27 ?n } UNION { resource:Q3836848 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
Italy Portugal
Italy and Portugal are Lorenza Ghinelli or Sofia Martins de Souza a civilian of
Italy Portugal
action filter_type
action union
action find
entity Lorenza Ghinelli
relation country of citizenship
action find
entity Sofia Martins de Souza
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lorenza Ghinelli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sofia Martins de Souza', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Sofia_Martins_de_Souza property:country_of_citizenship ?n } UNION { resource:Lorenza_Ghinelli property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q355304 Q1267889 Q20667921
USER
How many french administrative divisions are located next to exactly 2 watercourses and waterways ?
(c(Q20667921),P206,c(Q355304)|c(Q1267889))
action count
action equal
action union
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
value 2
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?j ) WHERE { { ?i property:P206 ?e . ?e rdf:type ontology:Q355304 . ?i rdf:type ontology:Q20667921 } UNION { ?i property:P206 ?e . ?i rdf:type ontology:Q20667921 . ?e rdf:type ontology:Q1267889 } } GROUP BY ?i } . FILTER ( ?j = 2 ) }
action count
action equal
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
value 2
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?j ) WHERE { { ?i property:located_next_to_body_of_water ?e . ?e rdf:type ontology:watercourse . ?i rdf:type ontology:type_of_french_administrative_division } UNION { ?i property:located_next_to_body_of_water ?e . ?i rdf:type ontology:type_of_french_administrative_division . ?e rdf:type ontology:waterway } } GROUP BY ?i } . FILTER ( ?j = 2 ) }
[]
watercourse waterway type of french administrative division
SYSTEM
1
Q20892
(c(Q20667921),P206,c(Q355304)|c(Q1267889))
action count
action equal
action union
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
value 2
[ANSWER]
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?j ) WHERE { { ?i property:P206 ?e . ?e rdf:type ontology:Q355304 . ?i rdf:type ontology:Q20667921 } UNION { ?i property:P206 ?e . ?i rdf:type ontology:Q20667921 . ?e rdf:type ontology:Q1267889 } } GROUP BY ?i } . FILTER ( ?j = 2 ) }
Le Mont-Saint-Michel
1
action count
action equal
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type watercourse
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
value 2
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?j ) WHERE { { ?i property:located_next_to_body_of_water ?e . ?e rdf:type ontology:watercourse . ?i rdf:type ontology:type_of_french_administrative_division } UNION { ?i property:located_next_to_body_of_water ?e . ?i rdf:type ontology:type_of_french_administrative_division . ?e rdf:type ontology:waterway } } GROUP BY ?i } . FILTER ( ?j = 2 ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10372923
P21
Q290
USER
What is the sex of that person ?
action filter_type
action find
entity Q10372923
relation P21
type Q290
SELECT DISTINCT ?x WHERE { resource:Q10372923 property:P21 ?x . ?x rdf:type ontology:Q290 }
Sofia Martins de Souza
action filter_type
action find
entity Sofia Martins de Souza
relation gender
type sex
SELECT DISTINCT ?x WHERE { resource:Sofia_Martins_de_Souza property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
action filter_type
action find
entity Q10372923
relation P21
type Q290
The sex of that person is the [ANSWER]
SELECT DISTINCT ?x WHERE { resource:Q10372923 property:P21 ?x . ?x rdf:type ontology:Q290 }
female
The sex of that person is the female
female
action filter_type
action find
entity Sofia Martins de Souza
relation gender
type sex
SELECT DISTINCT ?x WHERE { resource:Sofia_Martins_de_Souza property:gender ?x . ?x rdf:type ontology:sex }
[]