Simple Question (Direct)
Simple Question
Q3045169
P39
Q12737077
USER
Which occupation was a position occupied by Désiré Desloges ?
(Q3045169,P39,c(Q12737077))
action filter_type
action find
entity Q3045169
relation P39
type Q12737077
['Q3045169', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q3045169 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Désiré Desloges
action filter_type
action find
entity Désiré Desloges
relation position held
type occupation
['Désiré Desloges', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Désiré_Desloges property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q3044918
SYSTEM
member of the French National Assembly
Q3044918
(Q3045169,P39,c(Q12737077))
action filter_type
action find
entity Q3045169
relation P39
type Q12737077
A member of the French National Assembly was a position occupied by Désiré Desloges
['Q3045169', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q3045169 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
member of the French National Assembly
A member of the French National Assembly was a position occupied by Désiré Desloges
member of the French National Assembly
action filter_type
action find
entity Désiré Desloges
relation position held
type occupation
['Désiré Desloges', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Désiré_Desloges property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3045169
P20
Q20667921
USER
Which french administrative division is the place of death of Désiré Desloges ?
(Q3045169,P20,c(Q20667921))
action filter_type
action find
entity Q3045169
relation P20
type Q20667921
['Q3045169', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?s WHERE { resource:Q3045169 property:P20 ?s . ?s rdf:type ontology:Q20667921 }
Désiré Desloges
action filter_type
action find
entity Désiré Desloges
relation place of death
type type of french administrative division
['Désiré Desloges', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?s WHERE { resource:Désiré_Desloges property:place_of_death ?s . ?s rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q863167
SYSTEM
Saint-Pierre-du-Jonquet
Q863167
(Q3045169,P20,c(Q20667921))
action filter_type
action find
entity Q3045169
relation P20
type Q20667921
[ANSWER] is the place of death of Désiré Desloges
['Q3045169', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?s WHERE { resource:Q3045169 property:P20 ?s . ?s rdf:type ontology:Q20667921 }
Saint-Pierre-du-Jonquet
Saint-Pierre-du-Jonquet is the place of death of Désiré Desloges
Saint-Pierre-du-Jonquet
action filter_type
action find
entity Désiré Desloges
relation place of death
type type of french administrative division
['Désiré Desloges', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?s WHERE { resource:Désiré_Desloges property:place_of_death ?s . ?s rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3045169
P19
Q20667921
USER
Which french administrative division was that person born at ?
(Q863167,P19,c(Q20667921))
action filter_type
action find
entity Q3045169
relation P19
type Q20667921
['Q863167', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q3045169 property:P19 ?l . ?l rdf:type ontology:Q20667921 }
Désiré Desloges
action filter_type
action find
entity Désiré Desloges
relation place of birth
type type of french administrative division
['Saint-Pierre-du-Jonquet', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Désiré_Desloges property:place_of_birth ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q864008
SYSTEM
Janville
Q864008
(Q863167,P19,c(Q20667921))
action filter_type
action find
entity Q3045169
relation P19
type Q20667921
That person was born in [ANSWER]
['Q863167', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q3045169 property:P19 ?l . ?l rdf:type ontology:Q20667921 }
Janville
That person was born in Janville
Janville
action filter_type
action find
entity Désiré Desloges
relation place of birth
type type of french administrative division
['Saint-Pierre-du-Jonquet', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Désiré_Desloges property:place_of_birth ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q864008 Q274873 Q1013519
P47
Q20667921
USER
Is that french administrative division next to the border of Troarn and Saint-Pair ?
(Q864008,P47,Q274873) (Q864008,P47,Q1013519)
action is_in
entity Q864008
action intersection
action find_reverse
entity Q274873
relation P47
action find_reverse
entity Q1013519
relation P47
['Q864008', 'P47', 'Q274873'] ['Q864008', 'P47', 'Q1013519']
ASK WHERE { resource:Q864008 property:P47 resource:Q274873 . resource:Q864008 property:P47 resource:Q1013519 }
Janville Troarn Saint-Pair
action is_in
entity Janville
action intersection
action find_reverse
entity Troarn
relation shares border with
action find_reverse
entity Saint-Pair
relation shares border with
['Janville', 'shares border with', 'Troarn'] ['Janville', 'shares border with', 'Saint-Pair']
ASK WHERE { resource:Janville property:shares_border_with resource:Troarn . resource:Janville property:shares_border_with resource:Saint-Pair }
[]
type of french administrative division
SYSTEM
YES
(Q864008,P47,Q274873) (Q864008,P47,Q1013519)
action is_in
entity Q864008
action intersection
action find_reverse
entity Q274873
relation P47
action find_reverse
entity Q1013519
relation P47
[ANSWER]
['Q864008', 'P47', 'Q274873'] ['Q864008', 'P47', 'Q1013519']
ASK WHERE { resource:Q864008 property:P47 resource:Q274873 . resource:Q864008 property:P47 resource:Q1013519 }
Yes
action is_in
entity Janville
action intersection
action find_reverse
entity Troarn
relation shares border with
action find_reverse
entity Saint-Pair
relation shares border with
['Janville', 'shares border with', 'Troarn'] ['Janville', 'shares border with', 'Saint-Pair']
ASK WHERE { resource:Janville property:shares_border_with resource:Troarn . resource:Janville property:shares_border_with resource:Saint-Pair }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q864654 Q864008
P47
Q20667921
USER
Which french administrative divisions share the border with Janville or L'Hôtellerie ?
OR((Q864008,P47,c(Q20667921)), (Q864654,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q864008
relation P47
action find
entity Q864654
relation P47
type Q20667921
{'OR': [['Q864008', 'P47', {'concept': 'Q20667921'}], ['Q864654', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?n ) { ( resource:Q864654 ) ( resource:Q864008 ) } . ?n property:P47 ?d } . ?d rdf:type ontology:Q20667921 }
L'Hôtellerie Janville
action filter_type
action union
action find
entity Janville
relation shares border with
action find
entity L'Hôtellerie
relation shares border with
type type of french administrative division
{'OR': [['Janville', 'shares border with', {'concept': 'type of french administrative division'}], ["L'Hôtellerie", 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?n ) { ( resource:L'Hôtellerie ) ( resource:Janville ) } . ?n property:shares_border_with ?d } . ?d rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1013519 Q661311 Q1110959 Q1011566 Q838585 Q274873 Q845420 Q863868 Q1074514 Q863167
SYSTEM
Saint-Pair, Piencourt, Les Places, Thiberville, Argences, Troarn, Vimont, Marolles, Fontaine-la-Louvet, Saint-Pierre-du-Jonquet
Q1013519 Q661311 Q1110959 Q1011566 Q838585 Q274873 Q845420 Q863868 Q1074514 Q863167
OR((Q864008,P47,c(Q20667921)), (Q864654,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q864008
relation P47
action find
entity Q864654
relation P47
type Q20667921
[ANSWERS] share the border with Janville or L'Hôtellerie
{'OR': [['Q864008', 'P47', {'concept': 'Q20667921'}], ['Q864654', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?n ) { ( resource:Q864654 ) ( resource:Q864008 ) } . ?n property:P47 ?d } . ?d rdf:type ontology:Q20667921 }
Saint-Pair Piencourt Les Places Thiberville Argences Troarn Vimont Marolles Fontaine-la-Louvet Saint-Pierre-du-Jonquet
Saint-Pair, Piencourt, Les Places, Thiberville, Argences, Troarn, Vimont, Marolles, Fontaine-la-Louvet and Saint-Pierre-du-Jonquet share the border with Janville or L'Hôtellerie
Saint-Pair Piencourt Les Places Thiberville Argences Troarn Vimont Marolles Fontaine-la-Louvet Saint-Pierre-du-Jonquet
action filter_type
action union
action find
entity Janville
relation shares border with
action find
entity L'Hôtellerie
relation shares border with
type type of french administrative division
{'OR': [['Janville', 'shares border with', {'concept': 'type of french administrative division'}], ["L'Hôtellerie", 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?n ) { ( resource:L'Hôtellerie ) ( resource:Janville ) } . ?n property:shares_border_with ?d } . ?d rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q20667921
USER
How many french administrative divisions share border with that french administrative division ?
(c(Q20667921),P47,Q274873)
[{'concept': 'Q20667921'}, 'P47', 'Q274873']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q274873 . ?z rdf:type ontology:Q20667921 }
[{'concept': 'type of french administrative division'}, 'shares border with', 'Troarn']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Troarn . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Quantitative|Count|Single entity type|Clarification
Q863167
SYSTEM
Did you mean Saint-Pierre-du-Jonquet ?
(c(Q20667921),P47,Q1013519) (c(Q20667921),P47,Q661311) (c(Q20667921),P47,Q1110959) (c(Q20667921),P47,Q1011566) (c(Q20667921),P47,Q838585) (c(Q20667921),P47,Q274873) (c(Q20667921),P47,Q845420) (c(Q20667921),P47,Q863868) (c(Q20667921),P47,Q1074514) (c(Q20667921),P47,Q863167)
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q1013519'] [{'concept': 'Q20667921'}, 'P47', 'Q661311'] [{'concept': 'Q20667921'}, 'P47', 'Q1110959'] [{'concept': 'Q20667921'}, 'P47', 'Q1011566'] [{'concept': 'Q20667921'}, 'P47', 'Q838585'] [{'concept': 'Q20667921'}, 'P47', 'Q274873'] [{'concept': 'Q20667921'}, 'P47', 'Q845420'] [{'concept': 'Q20667921'}, 'P47', 'Q863868'] [{'concept': 'Q20667921'}, 'P47', 'Q1074514'] [{'concept': 'Q20667921'}, 'P47', 'Q863167']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q274873 . ?z rdf:type ontology:Q20667921 }
Did you mean Saint-Pierre-du-Jonquet ?
Saint-Pierre-du-Jonquet
[{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Pair'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Piencourt'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Les Places'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Thiberville'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Argences'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Troarn'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Vimont'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Marolles'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Fontaine-la-Louvet'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Pierre-du-Jonquet']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Troarn . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Troarn. Could you tell me the answer for that?
(c(Q20667921),P47,Q274873)
Q274873
[{'concept': 'Q20667921'}, 'P47', 'Q274873']
[{'concept': 'type of french administrative division'}, 'shares border with', 'Troarn']
[]
SYSTEM
9
Q777312 Q845410 Q274976 Q1013519 Q863167 Q838605 Q388760 Q839830 Q864008
(c(Q20667921),P47,Q274873)
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q274873']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q274873 . ?z rdf:type ontology:Q20667921 }
Saint-Samson Touffréville Bavent Saint-Pair Saint-Pierre-du-Jonquet Banneville-la-Campagne Sannerville Basseneville Janville
9
[{'concept': 'type of french administrative division'}, 'shares border with', 'Troarn']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Troarn . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q909977 Q1110959
P47
Q20667921
USER
Which french administrative divisions are next to the border of Les Places or Granges-Narboz ?
OR((c(Q20667921),P47,Q1110959), (c(Q20667921),P47,Q909977))
action filter_type
action union
action find_reverse
entity Q1110959
relation P47
action find_reverse
entity Q909977
relation P47
type Q20667921
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q1110959'], [{'concept': 'Q20667921'}, 'P47', 'Q909977']]}
SELECT DISTINCT ?d WHERE { { { ?d property:P47 resource:Q1110959 } UNION { ?d property:P47 resource:Q909977 } } . ?d rdf:type ontology:Q20667921 }
Granges-Narboz Les Places
action filter_type
action union
action find_reverse
entity Les Places
relation shares border with
action find_reverse
entity Granges-Narboz
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Les Places'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Granges-Narboz']]}
SELECT DISTINCT ?d WHERE { { { ?d property:shares_border_with resource:Les_Places } UNION { ?d property:shares_border_with resource:Granges-Narboz } } . ?d rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q845548 Q661311 Q909486 Q909127 Q214540 Q909135 Q909155 Q1074514 Q864654
SYSTEM
Chaffois, Piencourt, Oye-et-Pallet, Sainte-Colombe, Pontarlier, La Planée, Houtaud, Fontaine-la-Louvet, L'Hôtellerie
Q845548 Q661311 Q909486 Q909127 Q214540 Q909135 Q909155 Q1074514 Q864654
OR((c(Q20667921),P47,Q1110959), (c(Q20667921),P47,Q909977))
action filter_type
action union
action find_reverse
entity Q1110959
relation P47
action find_reverse
entity Q909977
relation P47
type Q20667921
[ANSWERS] are next to the border of Les Places or Granges-Narboz
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q1110959'], [{'concept': 'Q20667921'}, 'P47', 'Q909977']]}
SELECT DISTINCT ?d WHERE { { { ?d property:P47 resource:Q1110959 } UNION { ?d property:P47 resource:Q909977 } } . ?d rdf:type ontology:Q20667921 }
Chaffois Piencourt Oye-et-Pallet Sainte-Colombe Pontarlier La Planée Houtaud Fontaine-la-Louvet L'Hôtellerie
Chaffois, Piencourt, Oye-et-Pallet, Sainte-Colombe, Pontarlier, La Planée, Houtaud, Fontaine-la-Louvet and L'Hôtellerie are next to the border of Les Places or Granges-Narboz
Chaffois Piencourt Oye-et-Pallet Sainte-Colombe Pontarlier La Planée Houtaud Fontaine-la-Louvet L'Hôtellerie
action filter_type
action union
action find_reverse
entity Les Places
relation shares border with
action find_reverse
entity Granges-Narboz
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Les Places'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Granges-Narboz']]}
SELECT DISTINCT ?d WHERE { { { ?d property:shares_border_with resource:Les_Places } UNION { ?d property:shares_border_with resource:Granges-Narboz } } . ?d rdf:type ontology:type_of_french_administrative_division }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q3755547
P1376
Q7275 Q20667921
USER
Which states have greater number of french administrative divisions as their county seat than Kingdom of Italy ?
(c(Q20667921),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action count
action filter_type
action find
entity Q3755547
relation P1376
type Q7275
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?r ) WHERE { ?o rdf:type ontology:Q20667921 . ?b rdf:type ontology:Q7275 . ?o property:P1376 ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { ?f rdf:type ontology:Q7275 . resource:Q3755547 property:P1376 ?f } } . FILTER ( ?r > ?k ) }
Kingdom of Italy
action greater
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action count
action filter_type
action find
entity Kingdom of Italy
relation capital of
type state
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?r ) WHERE { ?o rdf:type ontology:type_of_french_administrative_division . ?b rdf:type ontology:state . ?o property:capital_of ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { ?f rdf:type ontology:state . resource:Kingdom_of_Italy property:capital_of ?f } } . FILTER ( ?r > ?k ) }
[]
state type of french administrative division
Q3456417 Q842091 Q112558
SYSTEM
Republic of Saint-Malo, Duchy of Normandy, Republic of Saugeais
Q3456417 Q842091 Q112558
(c(Q20667921),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action count
action filter_type
action find
entity Q3755547
relation P1376
type Q7275
[ANSWERS] have greater number of french administrative divisions as their county seat than Kingdom of Italy
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?r ) WHERE { ?o rdf:type ontology:Q20667921 . ?b rdf:type ontology:Q7275 . ?o property:P1376 ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { ?f rdf:type ontology:Q7275 . resource:Q3755547 property:P1376 ?f } } . FILTER ( ?r > ?k ) }
Republic of Saint-Malo Duchy of Normandy Republic of Saugeais
Republic of Saint-Malo, Duchy of Normandy and Republic of Saugeais have greater number of french administrative divisions as their county seat than Kingdom of Italy
Republic of Saint-Malo Duchy of Normandy Republic of Saugeais
action greater
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action count
action filter_type
action find
entity Kingdom of Italy
relation capital of
type state
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?r ) WHERE { ?o rdf:type ontology:type_of_french_administrative_division . ?b rdf:type ontology:state . ?o property:capital_of ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { ?f rdf:type ontology:state . resource:Kingdom_of_Italy property:capital_of ?f } } . FILTER ( ?r > ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q764697
P1376
Q7275 Q20667921
USER
And how about Taifa of Orihuela?
(c(Q20667921),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action count
action filter_type
action find
entity Q764697
relation P1376
type Q7275
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { resource:Q764697 property:P1376 ?k . ?k rdf:type ontology:Q7275 } } . FILTER ( ?c > ?j ) . { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:P1376 ?a . ?a rdf:type ontology:Q7275 . ?s rdf:type ontology:Q20667921 } GROUP BY ?a } }
Taifa of Orihuela
action greater
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action count
action filter_type
action find
entity Taifa of Orihuela
relation capital of
type state
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { resource:Taifa_of_Orihuela property:capital_of ?k . ?k rdf:type ontology:state } } . FILTER ( ?c > ?j ) . { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:capital_of ?a . ?a rdf:type ontology:state . ?s rdf:type ontology:type_of_french_administrative_division } GROUP BY ?a } }
[]
state type of french administrative division
Q3456417 Q842091 Q112558
SYSTEM
Republic of Saint-Malo, Duchy of Normandy, Republic of Saugeais
Q3456417 Q842091 Q112558
(c(Q20667921),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action count
action filter_type
action find
entity Q764697
relation P1376
type Q7275
[ANSWERS]
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { resource:Q764697 property:P1376 ?k . ?k rdf:type ontology:Q7275 } } . FILTER ( ?c > ?j ) . { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:P1376 ?a . ?a rdf:type ontology:Q7275 . ?s rdf:type ontology:Q20667921 } GROUP BY ?a } }
Republic of Saint-Malo Duchy of Normandy Republic of Saugeais
Republic of Saint-Malo Duchy of Normandy Republic of Saugeais
action greater
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action count
action filter_type
action find
entity Taifa of Orihuela
relation capital of
type state
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { resource:Taifa_of_Orihuela property:capital_of ?k . ?k rdf:type ontology:state } } . FILTER ( ?c > ?j ) . { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:capital_of ?a . ?a rdf:type ontology:state . ?s rdf:type ontology:type_of_french_administrative_division } GROUP BY ?a } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q142 Q909977
P47 P17
Q20667921
USER
Which french administrative divisions are bordered by Granges-Narboz and are present in France ?
AND((c(Q20667921),P47,Q909977), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q909977
relation P47
action find_reverse
entity Q142
relation P17
type Q20667921
{'AND': [[{'concept': 'Q20667921'}, 'P47', 'Q909977'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?m WHERE { ?m property:P47 resource:Q909977 . ?m property:P17 resource:Q142 . ?m rdf:type ontology:Q20667921 }
France Granges-Narboz
action filter_type
action intersection
action find_reverse
entity Granges-Narboz
relation shares border with
action find_reverse
entity France
relation country
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Granges-Narboz'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?m WHERE { ?m property:shares_border_with resource:Granges-Narboz . ?m property:country resource:France . ?m rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q845548 Q909486 Q909127 Q214540 Q909135 Q909155
SYSTEM
Chaffois, Oye-et-Pallet, Sainte-Colombe, Pontarlier, La Planée, Houtaud
Q845548 Q909486 Q909127 Q214540 Q909135 Q909155
AND((c(Q20667921),P47,Q909977), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q909977
relation P47
action find_reverse
entity Q142
relation P17
type Q20667921
[ANSWERS] are bordered by Granges-Narboz and are present in France
{'AND': [[{'concept': 'Q20667921'}, 'P47', 'Q909977'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?m WHERE { ?m property:P47 resource:Q909977 . ?m property:P17 resource:Q142 . ?m rdf:type ontology:Q20667921 }
Chaffois Oye-et-Pallet Sainte-Colombe Pontarlier La Planée Houtaud
Chaffois, Oye-et-Pallet, Sainte-Colombe, Pontarlier, La Planée and Houtaud are bordered by Granges-Narboz and are present in France
Chaffois Oye-et-Pallet Sainte-Colombe Pontarlier La Planée Houtaud
action filter_type
action intersection
action find_reverse
entity Granges-Narboz
relation shares border with
action find_reverse
entity France
relation country
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Granges-Narboz'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?m WHERE { ?m property:shares_border_with resource:Granges-Narboz . ?m property:country resource:France . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q845548 Q909486 Q909127 Q214540 Q909135 Q909155
P47
Q20667921
USER
Which french administrative divisions have a shared border with those ones ?
(Q845548,P47,c(Q20667921)) (Q909486,P47,c(Q20667921)) (Q909127,P47,c(Q20667921)) (Q214540,P47,c(Q20667921)) (Q909135,P47,c(Q20667921)) (Q909155,P47,c(Q20667921))
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
['Q845548', 'P47', {'concept': 'Q20667921'}] ['Q909486', 'P47', {'concept': 'Q20667921'}] ['Q909127', 'P47', {'concept': 'Q20667921'}] ['Q214540', 'P47', {'concept': 'Q20667921'}] ['Q909135', 'P47', {'concept': 'Q20667921'}] ['Q909155', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { ?t property:P47 ?h . VALUES ( ?t ) { ( resource:Q845548 ) ( resource:Q909486 ) ( resource:Q909127 ) } . ?h rdf:type ontology:Q20667921 }
Chaffois Oye-et-Pallet Sainte-Colombe Pontarlier La Planée Houtaud
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
['Chaffois', 'shares border with', {'concept': 'type of french administrative division'}] ['Oye-et-Pallet', 'shares border with', {'concept': 'type of french administrative division'}] ['Sainte-Colombe', 'shares border with', {'concept': 'type of french administrative division'}] ['Pontarlier', 'shares border with', {'concept': 'type of french administrative division'}] ['La Planée', 'shares border with', {'concept': 'type of french administrative division'}] ['Houtaud', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { ?t property:shares_border_with ?h . VALUES ( ?t ) { ( resource:Chaffois ) ( resource:Oye-et-Pallet ) ( resource:Sainte-Colombe ) } . ?h rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q214540 Q838839 Q923289
SYSTEM
Pontarlier, Chapelle-d'Huin, Sombacour
Q806870 Q923289 Q909127 Q838839 Q909155 Q909977 Q909945 Q909357 Q909135 Q909977 Q187671 Q909175 Q845548 Q806870 Q909135 Q909977 Q909163 Q906727 Q837461 Q909977 Q838861 Q382541 Q719141 Q187671 Q923439 Q909155 Q839944 Q909486 Q909127 Q909357 Q909977 Q768094 Q909163 Q214540 Q923289 Q909977 Q838861 Q845548
(Q845548,P47,c(Q20667921)) (Q909486,P47,c(Q20667921)) (Q909127,P47,c(Q20667921)) (Q214540,P47,c(Q20667921)) (Q909135,P47,c(Q20667921)) (Q909155,P47,c(Q20667921))
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
[ANSWERS] have a shared border with those ones
['Q845548', 'P47', {'concept': 'Q20667921'}] ['Q909486', 'P47', {'concept': 'Q20667921'}] ['Q909127', 'P47', {'concept': 'Q20667921'}] ['Q214540', 'P47', {'concept': 'Q20667921'}] ['Q909135', 'P47', {'concept': 'Q20667921'}] ['Q909155', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { ?t property:P47 ?h . VALUES ( ?t ) { ( resource:Q845548 ) ( resource:Q909486 ) ( resource:Q909127 ) } . ?h rdf:type ontology:Q20667921 }
Bannans Sombacour Sainte-Colombe Chapelle-d'Huin Houtaud Granges-Narboz Les Grangettes Malpas La Planée Granges-Narboz La Cluse-et-Mijoux Montperreux Chaffois Bannans La Planée Granges-Narboz La Rivière-Drugeon Maisons-du-Bois-Lièvremont Les Alliés Granges-Narboz Dommartin Doubs Arçon La Cluse-et-Mijoux Verrières-de-Joux Houtaud Bouverans Oye-et-Pallet Sainte-Colombe Malpas Granges-Narboz Vaux-et-Chantegrue La Rivière-Drugeon Pontarlier Sombacour Granges-Narboz Dommartin Chaffois
Pontarlier, Chapelle-d'Huin and Sombacour have a shared border with those ones
Pontarlier Chapelle-d'Huin Sombacour
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
['Chaffois', 'shares border with', {'concept': 'type of french administrative division'}] ['Oye-et-Pallet', 'shares border with', {'concept': 'type of french administrative division'}] ['Sainte-Colombe', 'shares border with', {'concept': 'type of french administrative division'}] ['Pontarlier', 'shares border with', {'concept': 'type of french administrative division'}] ['La Planée', 'shares border with', {'concept': 'type of french administrative division'}] ['Houtaud', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { ?t property:shares_border_with ?h . VALUES ( ?t ) { ( resource:Chaffois ) ( resource:Oye-et-Pallet ) ( resource:Sainte-Colombe ) } . ?h rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q214540
P740
Q43229
USER
Which organization was formed at Pontarlier ?
(c(Q43229),P740,Q214540)
action filter_type
action find_reverse
entity Q214540
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q214540']
SELECT DISTINCT ?c WHERE { ?c property:P740 resource:Q214540 . ?c rdf:type ontology:Q43229 }
Pontarlier
action filter_type
action find_reverse
entity Pontarlier
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Pontarlier']
SELECT DISTINCT ?c WHERE { ?c property:location_of_formation resource:Pontarlier . ?c rdf:type ontology:organization }
[]
organization
Q354601
SYSTEM
Pernod Fils
Q354601
(c(Q43229),P740,Q214540)
action filter_type
action find_reverse
entity Q214540
relation P740
type Q43229
As [ANSWER] was formed at Pontarlier
[{'concept': 'Q43229'}, 'P740', 'Q214540']
SELECT DISTINCT ?c WHERE { ?c property:P740 resource:Q214540 . ?c rdf:type ontology:Q43229 }
Pernod Fils
As Pernod Fils was formed at Pontarlier
Pernod Fils
action filter_type
action find_reverse
entity Pontarlier
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Pontarlier']
SELECT DISTINCT ?c WHERE { ?c property:location_of_formation resource:Pontarlier . ?c rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q214540
P190
Q1048835
USER
Which political territory is partner town of that french administrative division ?
(Q354601,P190,c(Q1048835))
action filter_type
action find
entity Q214540
relation P190
type Q1048835
['Q354601', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q214540 property:P190 ?r . ?r rdf:type ontology:Q1048835 }
Pontarlier
action filter_type
action find
entity Pontarlier
relation sister city
type political territorial entity
['Pernod Fils', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Pontarlier property:sister_city ?r . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q147774
SYSTEM
Zarautz
Q147774
(Q354601,P190,c(Q1048835))
action filter_type
action find
entity Q214540
relation P190
type Q1048835
[ANSWER] is partner town of that french administrative division
['Q354601', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q214540 property:P190 ?r . ?r rdf:type ontology:Q1048835 }
Zarautz
Zarautz is partner town of that french administrative division
Zarautz
action filter_type
action find
entity Pontarlier
relation sister city
type political territorial entity
['Pernod Fils', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Pontarlier property:sister_city ?r . ?r rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q147774
P1001
Q12737077
USER
Which occupation has jurisdiction over that political territory ?
(c(Q12737077),P1001,Q147774)
action filter_type
action find_reverse
entity Q147774
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q147774']
SELECT DISTINCT ?a WHERE { ?a property:P1001 resource:Q147774 . ?a rdf:type ontology:Q12737077 }
Zarautz
action filter_type
action find_reverse
entity Zarautz
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Zarautz']
SELECT DISTINCT ?a WHERE { ?a property:applies_to_jurisdiction resource:Zarautz . ?a rdf:type ontology:occupation }
[]
occupation
Q26691566
SYSTEM
mayor of Zarauz
Q26691566
(c(Q12737077),P1001,Q147774)
action filter_type
action find_reverse
entity Q147774
relation P1001
type Q12737077
The [ANSWER] has jurisdiction over that political territory
[{'concept': 'Q12737077'}, 'P1001', 'Q147774']
SELECT DISTINCT ?a WHERE { ?a property:P1001 resource:Q147774 . ?a rdf:type ontology:Q12737077 }
mayor of Zarauz
The mayor of Zarauz has jurisdiction over that political territory
mayor of Zarauz
action filter_type
action find_reverse
entity Zarautz
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Zarautz']
SELECT DISTINCT ?a WHERE { ?a property:applies_to_jurisdiction resource:Zarautz . ?a rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1755114 Q112558
P112 P161
Q502895
USER
Which people were the founders of Republic of Saugeais or were casted in Scudda Hoo! Scudda Hay! ?
OR((Q112558,P112,c(Q502895)), (Q1755114,P161,c(Q502895)))
action filter_type
action union
action find
entity Q112558
relation P112
action find
entity Q1755114
relation P161
type Q502895
{'OR': [['Q112558', 'P112', {'concept': 'Q502895'}], ['Q1755114', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q112558 property:P112 ?r } UNION { resource:Q1755114 property:P161 ?r } } . ?r rdf:type ontology:Q502895 }
Scudda Hoo! Scudda Hay! Republic of Saugeais
action filter_type
action union
action find
entity Republic of Saugeais
relation founder
action find
entity Scudda Hoo! Scudda Hay!
relation cast member
type common name
{'OR': [['Republic of Saugeais', 'founder', {'concept': 'common name'}], ['Scudda Hoo! Scudda Hay!', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Republic_of_Saugeais property:founder ?r } UNION { resource:Scudda_Hoo!_Scudda_Hay! property:cast_member ?r } } . ?r rdf:type ontology:common_name }
[]
common name
Q180919 Q2982961 Q1340277 Q19831183 Q3992510 Q219521 Q321978 Q4616 Q272349 Q239770
SYSTEM
Some of them are Natalie Wood, Colleen Townsend, Henry Hull, Georges Pourchet, Tom Moore, Walter Brennan, Lon McCallister, Marilyn Monroe, June Haver, Anne Revere
Q272349 Q321978 Q239770 Q744381 Q180919 Q1340277 Q3992510 Q219521 Q4616 Q19831183 Q2982961
OR((Q112558,P112,c(Q502895)), (Q1755114,P161,c(Q502895)))
action filter_type
action union
action find
entity Q112558
relation P112
action find
entity Q1755114
relation P161
type Q502895
[ANSWERS] were the founders of Republic of Saugeais or were casted in Scudda Hoo! Scudda Hay!
{'OR': [['Q112558', 'P112', {'concept': 'Q502895'}], ['Q1755114', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q112558 property:P112 ?r } UNION { resource:Q1755114 property:P161 ?r } } . ?r rdf:type ontology:Q502895 }
June Haver Lon McCallister Anne Revere Tom Tully Natalie Wood Henry Hull Tom Moore Walter Brennan Marilyn Monroe Georges Pourchet Colleen Townsend
Natalie Wood, Colleen Townsend, Henry Hull, Georges Pourchet, Tom Moore, Walter Brennan, Lon McCallister, Marilyn Monroe, June Haver and Anne Revere were the founders of Republic of Saugeais or were casted in Scudda Hoo! Scudda Hay!
Natalie Wood Colleen Townsend Henry Hull Georges Pourchet Tom Moore Walter Brennan Lon McCallister Marilyn Monroe June Haver Anne Revere
action filter_type
action union
action find
entity Republic of Saugeais
relation founder
action find
entity Scudda Hoo! Scudda Hay!
relation cast member
type common name
{'OR': [['Republic of Saugeais', 'founder', {'concept': 'common name'}], ['Scudda Hoo! Scudda Hay!', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Republic_of_Saugeais property:founder ?r } UNION { resource:Scudda_Hoo!_Scudda_Hay! property:cast_member ?r } } . ?r rdf:type ontology:common_name }
[]