Simple Question (Direct)
Simple Question
Q1278714
P607
Q198
USER
Which battle did Alfred Auger take part in ?
(Q1278714,P607,c(Q198))
action filter_type
action find
entity Q1278714
relation P607
type Q198
['Q1278714', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q198 . resource:Q1278714 property:P607 ?v }
Alfred Auger
action filter_type
action find
entity Alfred Auger
relation conflict
type war
['Alfred Auger', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:war . resource:Alfred_Auger property:conflict ?v }
[]
war
Q361
SYSTEM
World War I
Q361
(Q1278714,P607,c(Q198))
action filter_type
action find
entity Q1278714
relation P607
type Q198
Alfred Auger took in part in [ANSWER]
['Q1278714', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q198 . resource:Q1278714 property:P607 ?v }
World War I
Alfred Auger took in part in World War I
World War I
action filter_type
action find
entity Alfred Auger
relation conflict
type war
['Alfred Auger', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:war . resource:Alfred_Auger property:conflict ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1278714
P20
Q20667921
USER
Where did that person expire ?
(Q361,P20,c(Q20667921))
action filter_type
action find
entity Q1278714
relation P20
type Q20667921
['Q361', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?k WHERE { resource:Q1278714 property:P20 ?k . ?k rdf:type ontology:Q20667921 }
Alfred Auger
action filter_type
action find
entity Alfred Auger
relation place of death
type type of french administrative division
['World War I', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?k WHERE { resource:Alfred_Auger property:place_of_death ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q45797
SYSTEM
Dunkirk
Q45797
(Q361,P20,c(Q20667921))
action filter_type
action find
entity Q1278714
relation P20
type Q20667921
That person expired in [ANSWER]
['Q361', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?k WHERE { resource:Q1278714 property:P20 ?k . ?k rdf:type ontology:Q20667921 }
Dunkirk
That person expired in Dunkirk
Dunkirk
action filter_type
action find
entity Alfred Auger
relation place of death
type type of french administrative division
['World War I', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?k WHERE { resource:Alfred_Auger property:place_of_death ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q15617994 Q20667921
USER
Which administrative territories have exactly 1 french administrative division as their county seat ?
(c(Q20667921),P1376,c(Q15617994))
action equal
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
value 1
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?w = 1 ) . { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?w ) WHERE { ?y property:P1376 ?p . ?y rdf:type ontology:Q20667921 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } }
action equal
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
value 1
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?w = 1 ) . { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?w ) WHERE { ?y property:capital_of ?p . ?y rdf:type ontology:type_of_french_administrative_division . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } }
[]
designation for an administrative territorial entity type of french administrative division
Q12753 Q12584 Q3113
SYSTEM
Seine-et-Marne, Maine-et-Loire, Allier
Q12631 Q3368 Q3044731 Q12689 Q3377 Q3372 Q3093 Q2528268 Q12594 Q12574 Q12792 Q12700 Q12709 Q12642 Q3216 Q3194 Q12804 Q12808 Q3326 Q3286 Q3266 Q3105 Q33788 Q12740 Q12745 Q12779 Q12607 Q2281221 Q12694 Q12515 Q12517 Q3364 Q3148 Q12675 Q12589 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q12736 Q12657 Q12652 Q12556 Q12816 Q3353 Q3357 Q3184 Q2900529 Q1999970 Q155019 Q107426 Q12661 Q1270623 Q3125 Q3120 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q3349 Q3083 Q3240 Q3249 Q12761 Q12765 Q3334 Q12572 Q12576 Q12578 Q12679 Q3113 Q12758 Q12753 Q12751 Q12564
(c(Q20667921),P1376,c(Q15617994))
action equal
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
value 1
[ANSWERS] have exactly 1 french administrative division as their county seat
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?w = 1 ) . { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?w ) WHERE { ?y property:P1376 ?p . ?y rdf:type ontology:Q20667921 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } }
Meuse Essonne Guyane Pas-de-Calais Eure-et-Loir Eure Aisne Mont-Blanc Marne Loiret Vaucluse Hautes-Pyrénées Pyrénées-Orientales Morbihan Aveyron Aube Vienne Haute-Vienne Corrèze Cher Charente Vosges New Caledonia Sarthe Savoie Tarn-et-Garonne Haute-Marne Principality of Orange Puy-de-Dôme Gard Gers Drôme Ardèche Oise Manche Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Saône-et-Loire Nièvre Moselle Indre-et-Loire Yonne Creuse Dordogne Ariège Bezirk Lothringen Upper Alsace Duchy of Lorraine Anjou Nord Meurthe Hautes-Alpes Jura Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Côtes-d'Armor Ain Bouches-du-Rhône Calvados Seine-Saint-Denis Deux-Sèvres Haute-Corse Haute-Loire Lot Lot-et-Garonne Orne Allier Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
Seine-et-Marne, Maine-et-Loire and Allier have exactly 1 french administrative division as their county seat
Seine-et-Marne Maine-et-Loire Allier
action equal
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
value 1
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?w = 1 ) . { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?w ) WHERE { ?y property:capital_of ?p . ?y rdf:type ontology:type_of_french_administrative_division . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q12753
P47
Q15617994
USER
Which administrative territories share border with that one ?
(Q12753,P47,c(Q15617994))
action filter_type
action find
entity Q12753
relation P47
type Q15617994
['Q12753', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q12753 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Seine-et-Marne
action filter_type
action find
entity Seine-et-Marne
relation shares border with
type designation for an administrative territorial entity
['Seine-et-Marne', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Seine-et-Marne property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q3113
SYSTEM
Did you mean Allier ?
Q12753 Q12584 Q3113
(Q12753,P47,c(Q15617994)) (Q12584,P47,c(Q15617994)) (Q3113,P47,c(Q15617994))
[ANSWER]
['Q12753', 'P47', {'concept': 'Q15617994'}] ['Q12584', 'P47', {'concept': 'Q15617994'}] ['Q3113', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q12753 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Seine-et-Marne Maine-et-Loire Allier
Did you mean Allier ?
Allier
['Seine-et-Marne', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Maine-et-Loire', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Allier', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Seine-et-Marne property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Seine-et-Marne. Could you tell me the answer for that?
(Q12753,P47,c(Q15617994))
Q12753
['Q12753', 'P47', {'concept': 'Q15617994'}]
['Seine-et-Marne', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
Q12761 Q3093 Q12574
SYSTEM
Seine-Saint-Denis, Aisne, Loiret
Q12816 Q12675 Q3093 Q3194 Q3368 Q12761 Q979470 Q12788 Q12574 Q12784 Q12594
(Q12753,P47,c(Q15617994))
action filter_type
action find
entity Q12753
relation P47
type Q15617994
[ANSWERS] share border with that one
['Q12753', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q12753 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Yonne Oise Aisne Aube Essonne Seine-Saint-Denis Seine-et-Oise Val-de-Marne Loiret Val-d'Oise Marne
Seine-Saint-Denis, Aisne and Loiret share border with that one
Seine-Saint-Denis Aisne Loiret
action filter_type
action find
entity Seine-et-Marne
relation shares border with
type designation for an administrative territorial entity
['Seine-et-Marne', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Seine-et-Marne property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7262452 Q1278714
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Alfred Auger or Puttanna Kanagal ?
OR((Q1278714,P27,c(Q15617994)), (Q7262452,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1278714
relation P27
action find
entity Q7262452
relation P27
type Q15617994
{'OR': [['Q1278714', 'P27', {'concept': 'Q15617994'}], ['Q7262452', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?q ) { ( resource:Q1278714 ) ( resource:Q7262452 ) } . ?q property:P27 ?x } . ?x rdf:type ontology:Q15617994 }
Puttanna Kanagal Alfred Auger
action filter_type
action union
action find
entity Alfred Auger
relation country of citizenship
action find
entity Puttanna Kanagal
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alfred Auger', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Puttanna Kanagal', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?q ) { ( resource:Alfred_Auger ) ( resource:Puttanna_Kanagal ) } . ?q property:country_of_citizenship ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q668
SYSTEM
France, India
Q142 Q668
OR((Q1278714,P27,c(Q15617994)), (Q7262452,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1278714
relation P27
action find
entity Q7262452
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Alfred Auger or Puttanna Kanagal
{'OR': [['Q1278714', 'P27', {'concept': 'Q15617994'}], ['Q7262452', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?q ) { ( resource:Q1278714 ) ( resource:Q7262452 ) } . ?q property:P27 ?x } . ?x rdf:type ontology:Q15617994 }
France India
France and India are the countries of citizenship of Alfred Auger or Puttanna Kanagal
France India
action filter_type
action union
action find
entity Alfred Auger
relation country of citizenship
action find
entity Puttanna Kanagal
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alfred Auger', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Puttanna Kanagal', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?q ) { ( resource:Alfred_Auger ) ( resource:Puttanna_Kanagal ) } . ?q property:country_of_citizenship ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q375805 Q45797
P47 P1376
Q20667921
USER
Which french administrative divisions have Dunkirk have their center of administration or share border with Acqueville ?
OR((Q45797,P1376,c(Q20667921)), (Q375805,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q45797
relation P1376
action find
entity Q375805
relation P47
type Q20667921
{'OR': [['Q45797', 'P1376', {'concept': 'Q20667921'}], ['Q375805', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q45797 property:P1376 ?n } UNION { resource:Q375805 property:P47 ?n } } . ?n rdf:type ontology:Q20667921 }
Acqueville Dunkirk
action filter_type
action union
action find
entity Dunkirk
relation capital of
action find
entity Acqueville
relation shares border with
type type of french administrative division
{'OR': [['Dunkirk', 'capital of', {'concept': 'type of french administrative division'}], ['Acqueville', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Dunkirk property:capital_of ?n } UNION { resource:Acqueville property:shares_border_with ?n } } . ?n rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q118758 Q386774 Q1013553 Q651541 Q863064 Q846459 Q427700 Q640960
SYSTEM
canton of Dunkerque-Ouest, canton of Dunkerque-Est, Moulines, Martainville, Meslay, Tournebu, Angoville, Cesny-Bois-Halbout
Q118758 Q386774 Q1013553 Q651541 Q863064 Q846459 Q427700 Q640960
OR((Q45797,P1376,c(Q20667921)), (Q375805,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q45797
relation P1376
action find
entity Q375805
relation P47
type Q20667921
Ville [ANSWERS] have Dunkirk have their center of administration or share border with Acqueville
{'OR': [['Q45797', 'P1376', {'concept': 'Q20667921'}], ['Q375805', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q45797 property:P1376 ?n } UNION { resource:Q375805 property:P47 ?n } } . ?n rdf:type ontology:Q20667921 }
canton of Dunkerque-Ouest canton of Dunkerque-Est Moulines Martainville Meslay Tournebu Angoville Cesny-Bois-Halbout
Ville canton of Dunkerque-Ouest, canton of Dunkerque-Est, Moulines, Martainville, Meslay, Tournebu, Angoville and Cesny-Bois-Halbout have Dunkirk have their center of administration or share border with Acqueville
canton of Dunkerque-Ouest canton of Dunkerque-Est Moulines Martainville Meslay Tournebu Angoville Cesny-Bois-Halbout
action filter_type
action union
action find
entity Dunkirk
relation capital of
action find
entity Acqueville
relation shares border with
type type of french administrative division
{'OR': [['Dunkirk', 'capital of', {'concept': 'type of french administrative division'}], ['Acqueville', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Dunkirk property:capital_of ?n } UNION { resource:Acqueville property:shares_border_with ?n } } . ?n rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q716536
P291
Q1002697
USER
How many periodical literatures have France or Sunndalsøra as their publication place ?
(c(Q1002697),P291,Q142) (c(Q1002697),P291,Q716536)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P291
type Q1002697
action filter_type
action find_reverse
entity Q716536
relation P291
type Q1002697
[{'concept': 'Q1002697'}, 'P291', 'Q142'] [{'concept': 'Q1002697'}, 'P291', 'Q716536']
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { ?h rdf:type ontology:Q1002697 . ?h property:P291 resource:Q142 } UNION { ?h property:P291 resource:Q716536 . ?h rdf:type ontology:Q1002697 } }
France Sunndalsøra
action count
action union
action filter_type
action find_reverse
entity France
relation place of publication
type periodical literature
action filter_type
action find_reverse
entity Sunndalsøra
relation place of publication
type periodical literature
[{'concept': 'periodical literature'}, 'place of publication', 'France'] [{'concept': 'periodical literature'}, 'place of publication', 'Sunndalsøra']
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { ?h rdf:type ontology:periodical_literature . ?h property:place_of_publication resource:France } UNION { ?h property:place_of_publication resource:Sunndalsøra . ?h rdf:type ontology:periodical_literature } }
[]
periodical literature
SYSTEM
2
Q8773427 Q1764770
(c(Q1002697),P291,Q142) (c(Q1002697),P291,Q716536)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P291
type Q1002697
action filter_type
action find_reverse
entity Q716536
relation P291
type Q1002697
[ANSWER]
[{'concept': 'Q1002697'}, 'P291', 'Q142'] [{'concept': 'Q1002697'}, 'P291', 'Q716536']
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { ?h rdf:type ontology:Q1002697 . ?h property:P291 resource:Q142 } UNION { ?h property:P291 resource:Q716536 . ?h rdf:type ontology:Q1002697 } }
El Socialista Aura Avis
2
action count
action union
action filter_type
action find_reverse
entity France
relation place of publication
type periodical literature
action filter_type
action find_reverse
entity Sunndalsøra
relation place of publication
type periodical literature
[{'concept': 'periodical literature'}, 'place of publication', 'France'] [{'concept': 'periodical literature'}, 'place of publication', 'Sunndalsøra']
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { ?h rdf:type ontology:periodical_literature . ?h property:place_of_publication resource:France } UNION { ?h property:place_of_publication resource:Sunndalsøra . ?h rdf:type ontology:periodical_literature } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P194
Q35749 Q11204 Q15617994
USER
Which administrative territories have max number of parliaments or legislatures as their council ?
(c(Q15617994),P194,c(Q35749)|c(Q11204))
action argmax
action union
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action find_tuple_counts
relation P194
type Q15617994
type Q11204
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q35749'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?e ) { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?n ) { ( ontology:Q35749 ) ( ontology:Q11204 ) } . ?s rdf:type ?n } GROUP BY ?u } } . { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?l ) WHERE { { ?a property:P194 ?m . ?a rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q35749 } UNION { ?a property:P194 ?m . ?a rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q11204 } } GROUP BY ?a } . FILTER ( ?l = ?e ) }
action argmax
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'parliament'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?e ) { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?n ) { ( ontology:parliament ) ( ontology:legislature ) } . ?s rdf:type ?n } GROUP BY ?u } } . { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?l ) WHERE { { ?a property:legislative_body ?m . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:parliament } UNION { ?a property:legislative_body ?m . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:legislature } } GROUP BY ?a } . FILTER ( ?l = ?e ) }
[]
parliament legislature designation for an administrative territorial entity
Q948
SYSTEM
Tunisia
Q948
(c(Q15617994),P194,c(Q35749)|c(Q11204))
action argmax
action union
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action find_tuple_counts
relation P194
type Q15617994
type Q11204
[ANSWER] have max number of parliaments or legislatures as their council
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q35749'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?e ) { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?n ) { ( ontology:Q35749 ) ( ontology:Q11204 ) } . ?s rdf:type ?n } GROUP BY ?u } } . { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?l ) WHERE { { ?a property:P194 ?m . ?a rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q35749 } UNION { ?a property:P194 ?m . ?a rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q11204 } } GROUP BY ?a } . FILTER ( ?l = ?e ) }
Tunisia
Tunisia have max number of parliaments or legislatures as their council
Tunisia
action argmax
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'parliament'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?e ) { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?n ) { ( ontology:parliament ) ( ontology:legislature ) } . ?s rdf:type ?n } GROUP BY ?u } } . { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?l ) WHERE { { ?a property:legislative_body ?m . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:parliament } UNION { ?a property:legislative_body ?m . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:legislature } } GROUP BY ?a } . FILTER ( ?l = ?e ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P88
Q340169
USER
What did France commission ?
(c(Q340169),P88,Q142)
action filter_type
action find_reverse
entity Q142
relation P88
type Q340169
[{'concept': 'Q340169'}, 'P88', 'Q142']
SELECT DISTINCT ?z WHERE { ?z property:P88 resource:Q142 . ?z rdf:type ontology:Q340169 }
France
action filter_type
action find_reverse
entity France
relation commissioned by
type media
[{'concept': 'media'}, 'commissioned by', 'France']
SELECT DISTINCT ?z WHERE { ?z property:commissioned_by resource:France . ?z rdf:type ontology:media }
[]
media
Q2956370
SYSTEM
Chanteur florentin du XVe siècle
Q2956370
(c(Q340169),P88,Q142)
action filter_type
action find_reverse
entity Q142
relation P88
type Q340169
France commissioned [ANSWER]
[{'concept': 'Q340169'}, 'P88', 'Q142']
SELECT DISTINCT ?z WHERE { ?z property:P88 resource:Q142 . ?z rdf:type ontology:Q340169 }
Chanteur florentin du XVe siècle
France commissioned Chanteur florentin du XVe siècle
Chanteur florentin du XVe siècle
action filter_type
action find_reverse
entity France
relation commissioned by
type media
[{'concept': 'media'}, 'commissioned by', 'France']
SELECT DISTINCT ?z WHERE { ?z property:commissioned_by resource:France . ?z rdf:type ontology:media }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P30
Q2221906
USER
Where are that administrative territory located ?
(Q2956370,P30,c(Q2221906))
action filter_type
action find
entity Q142
relation P30
type Q2221906
['Q2956370', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q2221906 . resource:Q142 property:P30 ?v }
France
action filter_type
action find
entity France
relation continent
type geographic location
['Chanteur florentin du XVe siècle', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:geographic_location . resource:France property:continent ?v }
[]
geographic location
Q51 Q15 Q46
SYSTEM
Antarctica, Africa, Europe
Q46 Q15 Q538 Q828 Q51
(Q2956370,P30,c(Q2221906))
action filter_type
action find
entity Q142
relation P30
type Q2221906
That administrative territory are located in [ANSWERS]
['Q2956370', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q2221906 . resource:Q142 property:P30 ?v }
Europe Africa Oceania Americas Antarctica
That administrative territory are located in Antarctica, Africa and Europe
Antarctica Africa Europe
action filter_type
action find
entity France
relation continent
type geographic location
['Chanteur florentin du XVe siècle', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:geographic_location . resource:France property:continent ?v }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2273883 Q375805
P495 P17
Q15617994
USER
Which administrative territories do Acqueville belong to and are the origins of Treasure Island ?
AND((Q375805,P17,c(Q15617994)), (Q2273883,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q375805
relation P17
action find
entity Q2273883
relation P495
type Q15617994
{'AND': [['Q375805', 'P17', {'concept': 'Q15617994'}], ['Q2273883', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q375805 property:P17 ?k . resource:Q2273883 property:P495 ?k }
Treasure Island Acqueville
action filter_type
action intersection
action find
entity Acqueville
relation country
action find
entity Treasure Island
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Acqueville', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Treasure Island', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Acqueville property:country ?k . resource:Treasure_Island property:country_of_origin ?k }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q375805,P17,c(Q15617994)), (Q2273883,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q375805
relation P17
action find
entity Q2273883
relation P495
type Q15617994
Acqueville belong to [ANSWER] and are the origins of Treasure Island
{'AND': [['Q375805', 'P17', {'concept': 'Q15617994'}], ['Q2273883', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q375805 property:P17 ?k . resource:Q2273883 property:P495 ?k }
France
Acqueville belong to France and are the origins of Treasure Island
France
action filter_type
action intersection
action find
entity Acqueville
relation country
action find
entity Treasure Island
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Acqueville', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Treasure Island', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Acqueville property:country ?k . resource:Treasure_Island property:country_of_origin ?k }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q142 Q145 Q17
P530
Q15617994
USER
Does that administrative territory have diplomatic relations with United Kingdom and Japan ?
(Q142,P530,Q145) (Q142,P530,Q17)
action is_in
entity Q142
action intersection
action find_reverse
entity Q145
relation P530
action find_reverse
entity Q17
relation P530
['Q142', 'P530', 'Q145'] ['Q142', 'P530', 'Q17']
ASK WHERE { resource:Q142 property:P530 resource:Q145 . resource:Q142 property:P530 resource:Q17 }
France United Kingdom Japan
action is_in
entity France
action intersection
action find_reverse
entity United Kingdom
relation diplomatic relation
action find_reverse
entity Japan
relation diplomatic relation
['France', 'diplomatic relation', 'United Kingdom'] ['France', 'diplomatic relation', 'Japan']
ASK WHERE { resource:France property:diplomatic_relation resource:United_Kingdom . resource:France property:diplomatic_relation resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q142,P530,Q145) (Q142,P530,Q17)
action is_in
entity Q142
action intersection
action find_reverse
entity Q145
relation P530
action find_reverse
entity Q17
relation P530
[ANSWER]
['Q142', 'P530', 'Q145'] ['Q142', 'P530', 'Q17']
ASK WHERE { resource:Q142 property:P530 resource:Q145 . resource:Q142 property:P530 resource:Q17 }
Yes
action is_in
entity France
action intersection
action find_reverse
entity United Kingdom
relation diplomatic relation
action find_reverse
entity Japan
relation diplomatic relation
['France', 'diplomatic relation', 'United Kingdom'] ['France', 'diplomatic relation', 'Japan']
ASK WHERE { resource:France property:diplomatic_relation resource:United_Kingdom . resource:France property:diplomatic_relation resource:Japan }
[]