Simple Question (Direct)
Simple Question
Q1435672
P47
Q20667921
USER
Which french administrative divisions are adjacent to Nueil-sous-Faye ?
(Q1435672,P47,c(Q20667921))
action filter_type
action find
entity Q1435672
relation P47
type Q20667921
['Q1435672', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q20667921 . resource:Q1435672 property:P47 ?t }
Nueil-sous-Faye
action filter_type
action find
entity Nueil-sous-Faye
relation shares border with
type type of french administrative division
['Nueil-sous-Faye', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:type_of_french_administrative_division . resource:Nueil-sous-Faye property:shares_border_with ?t }
[]
type of french administrative division
Q1614445 Q1138714 Q1435616
SYSTEM
Sérigny, Braye-sous-Faye, Pouant
Q921265 Q1614445 Q932673 Q1138714 Q1435616 Q1437456
(Q1435672,P47,c(Q20667921))
action filter_type
action find
entity Q1435672
relation P47
type Q20667921
[ANSWERS] are adjacent to Nueil-sous-Faye
['Q1435672', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q20667921 . resource:Q1435672 property:P47 ?t }
Maulay Sérigny Dercé Braye-sous-Faye Pouant Prinçay
Sérigny, Braye-sous-Faye and Pouant are adjacent to Nueil-sous-Faye
Sérigny Braye-sous-Faye Pouant
action filter_type
action find
entity Nueil-sous-Faye
relation shares border with
type type of french administrative division
['Nueil-sous-Faye', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:type_of_french_administrative_division . resource:Nueil-sous-Faye property:shares_border_with ?t }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1614445
P17
Q15617994
USER
Which administrative territory is that french administrative division situated in ?
(Q1614445,P17,c(Q15617994))
action filter_type
action find
entity Q1614445
relation P17
type Q15617994
['Q1614445', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q1614445 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Sérigny
action filter_type
action find
entity Sérigny
relation country
type designation for an administrative territorial entity
['Sérigny', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Sérigny property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1138714
SYSTEM
Did you mean Braye-sous-Faye ?
Q1614445 Q1138714 Q1435616
(Q1614445,P17,c(Q15617994)) (Q1138714,P17,c(Q15617994)) (Q1435616,P17,c(Q15617994))
[ANSWER]
['Q1614445', 'P17', {'concept': 'Q15617994'}] ['Q1138714', 'P17', {'concept': 'Q15617994'}] ['Q1435616', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q1614445 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Sérigny Braye-sous-Faye Pouant
Did you mean Braye-sous-Faye ?
Braye-sous-Faye
['Sérigny', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Braye-sous-Faye', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Pouant', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Sérigny property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Sérigny. Could you tell me the answer for that?
(Q1614445,P17,c(Q15617994))
Q1614445
['Q1614445', 'P17', {'concept': 'Q15617994'}]
['Sérigny', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q1614445,P17,c(Q15617994))
action filter_type
action find
entity Q1614445
relation P17
type Q15617994
That french administrative division is situated in [ANSWER]
['Q1614445', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q1614445 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
France
That french administrative division is situated in France
France
action filter_type
action find
entity Sérigny
relation country
type designation for an administrative territorial entity
['Sérigny', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Sérigny property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q790
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with less number of administrative territories than Haiti ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q790
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?i ) WHERE { ?q property:P530 ?n . ?q rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Q790 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?i < ?v ) }
Haiti
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Haiti
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?i ) WHERE { ?q property:diplomatic_relation ?n . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Haiti property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i < ?v ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
52
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q790
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?i ) WHERE { ?q property:P530 ?n . ?q rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Q790 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?i < ?v ) }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
52
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Haiti
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?i ) WHERE { ?q property:diplomatic_relation ?n . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Haiti property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i < ?v ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q45
P530
Q15617994 Q15617994
USER
And also tell me about Portugal?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q45
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?f ) WHERE { ?x property:P530 ?u . ?x rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Q45 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?f < ?c ) }
Portugal
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Portugal
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?f ) WHERE { ?x property:diplomatic_relation ?u . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Portugal property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f < ?c ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
111
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q265 Q712 Q717 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q881 Q986 Q242 Q244 Q811 Q33 Q924 Q36 Q34 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q228 Q227 Q224 Q221 Q96 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q77 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q45
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?f ) WHERE { ?x property:P530 ?u . ?x rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Q45 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?f < ?c ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Uzbekistan Fiji Venezuela Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Vietnam Eritrea Belize Barbados Nicaragua Finland Tanzania Poland Sweden Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Croatia Republic of Macedonia Mexico Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Uruguay United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga Spain New Caledonia Thailand
111
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Portugal
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?f ) WHERE { ?x property:diplomatic_relation ?u . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Portugal property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f < ?c ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P1313
Q12737077
USER
Which occupation is fulfilled by France ?
(Q142,P1313,c(Q12737077))
action filter_type
action find
entity Q142
relation P1313
type Q12737077
['Q142', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q142 property:P1313 ?z . ?z rdf:type ontology:Q12737077 }
France
action filter_type
action find
entity France
relation office held by head of government
type occupation
['France', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:France property:office_held_by_head_of_government ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q1587677
SYSTEM
Prime Minister of France
Q1587677
(Q142,P1313,c(Q12737077))
action filter_type
action find
entity Q142
relation P1313
type Q12737077
France [ANSWER] is fulfilled by France
['Q142', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q142 property:P1313 ?z . ?z rdf:type ontology:Q12737077 }
Prime Minister of France
France Prime Minister of France is fulfilled by France
Prime Minister of France
action filter_type
action find
entity France
relation office held by head of government
type occupation
['France', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:France property:office_held_by_head_of_government ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1126752
Q12737077
USER
And how about Shariff Kabunsuan?
(Q1126752,P1313,c(Q12737077))
action filter_type
action find
entity Q1126752
relation P1313
type Q12737077
['Q1126752', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q1126752 property:P1313 ?l . ?l rdf:type ontology:Q12737077 }
Shariff Kabunsuan
action filter_type
action find
entity Shariff Kabunsuan
relation office held by head of government
type occupation
['Shariff Kabunsuan', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Shariff_Kabunsuan property:office_held_by_head_of_government ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q132050
SYSTEM
governor
Q132050
(Q1126752,P1313,c(Q12737077))
action filter_type
action find
entity Q1126752
relation P1313
type Q12737077
[ANSWER]
['Q1126752', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q1126752 property:P1313 ?l . ?l rdf:type ontology:Q12737077 }
governor
governor
action filter_type
action find
entity Shariff Kabunsuan
relation office held by head of government
type occupation
['Shariff Kabunsuan', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Shariff_Kabunsuan property:office_held_by_head_of_government ?l . ?l rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P106
Q502895
USER
How many people have a job as that occupation ?
(c(Q502895),P106,Q132050)
action count
action filter_type
action find_reverse
entity Q132050
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q132050']
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:Q502895 . ?p property:P106 resource:Q132050 }
action count
action filter_type
action find_reverse
entity governor
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'governor']
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:common_name . ?p property:occupation resource:governor }
[]
common name
SYSTEM
32
Q25189565 Q18286692 Q10305313 Q19325391 Q20639148 Q16166861 Q20002791 Q20011665 Q20003468 Q1227205 Q11903522 Q7345710 Q8273313 Q3084978 Q23861022 Q1063964 Q3568825 Q20001849 Q560071 Q8016367 Q2899710 Q3114510 Q7290533 Q21668992 Q14918647 Q19999780 Q13360614 Q20000716 Q4942093 Q735370 Q3158836 Q7326
(c(Q502895),P106,Q132050)
action count
action filter_type
action find_reverse
entity Q132050
relation P106
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q132050']
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:Q502895 . ?p property:P106 resource:Q132050 }
Sarah Payne Pedro Nolasco Vergara Albano Januário Correia de Almeida John Hart William Glover Hug d'Anglesola Guillem de Santcliment Bernard Texier Joan de Cardona i Rocabertí Menelaus 'Abd Allāh ibn Muhammad ibn Ġānīya Robert Hunt Fang Chih François Joseph Clozel Marashli Ali Pasha Charles Cochrane-Baillie, 2nd Baron Lamington William Merlaud-Ponty Frederic de Santcliment Joseph François Dupleix William Orfeur Cavenagh Bertrand d'Ogeron de La Bouëre Jean-Jacques Blaise d'Abbadie Ramón Músquiz Jaafar Mohammed Saad Andreas Kopasis Felip de Boïl i de la Scala Artal de Foces Francesc Girón de Rebolledo Bonivert Claude Paul Bert Jacques Dyel du Parquet Hernán Cortés
32
action count
action filter_type
action find_reverse
entity governor
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'governor']
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:common_name . ?p property:occupation resource:governor }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q112797 Q1587677
P1001 P17
Q15617994
USER
Which administrative territories are judicially linked to Prime Minister of France or are Matiari District a part of ?
OR((Q1587677,P1001,c(Q15617994)), (Q112797,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1587677
relation P1001
action find
entity Q112797
relation P17
type Q15617994
{'OR': [['Q1587677', 'P1001', {'concept': 'Q15617994'}], ['Q112797', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q112797 property:P17 ?f } UNION { resource:Q1587677 property:P1001 ?f } } . ?f rdf:type ontology:Q15617994 }
Matiari District Prime Minister of France
action filter_type
action union
action find
entity Prime Minister of France
relation applies to jurisdiction
action find
entity Matiari District
relation country
type designation for an administrative territorial entity
{'OR': [['Prime Minister of France', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Matiari District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Matiari_District property:country ?f } UNION { resource:Prime_Minister_of_France property:applies_to_jurisdiction ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q843
SYSTEM
France, Pakistan
Q142 Q843
OR((Q1587677,P1001,c(Q15617994)), (Q112797,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1587677
relation P1001
action find
entity Q112797
relation P17
type Q15617994
[ANSWERS] are judicially linked to Prime Minister of France or are Matiari District a part of
{'OR': [['Q1587677', 'P1001', {'concept': 'Q15617994'}], ['Q112797', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q112797 property:P17 ?f } UNION { resource:Q1587677 property:P1001 ?f } } . ?f rdf:type ontology:Q15617994 }
France Pakistan
France and Pakistan are judicially linked to Prime Minister of France or are Matiari District a part of
France Pakistan
action filter_type
action union
action find
entity Prime Minister of France
relation applies to jurisdiction
action find
entity Matiari District
relation country
type designation for an administrative territorial entity
{'OR': [['Prime Minister of France', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Matiari District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Matiari_District property:country ?f } UNION { resource:Prime_Minister_of_France property:applies_to_jurisdiction ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with max number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?o ) { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?p ) WHERE { ?k property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } } . { SELECT DISTINCT ?x ( COUNT ( ?g ) AS ?t ) WHERE { ?x rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 . ?x property:P530 ?g } GROUP BY ?x } . FILTER ( ?t = ?o ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?o ) { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?p ) WHERE { ?k property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } } . { SELECT DISTINCT ?x ( COUNT ( ?g ) AS ?t ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?g } GROUP BY ?x } . FILTER ( ?t = ?o ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] holds diplomatic relationship with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?o ) { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?p ) WHERE { ?k property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } } . { SELECT DISTINCT ?x ( COUNT ( ?g ) AS ?t ) WHERE { ?x rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 . ?x property:P530 ?g } GROUP BY ?x } . FILTER ( ?t = ?o ) }
Italy
Italy holds diplomatic relationship with max number of administrative territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?o ) { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?p ) WHERE { ?k property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } } . { SELECT DISTINCT ?x ( COUNT ( ?g ) AS ?t ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?g } GROUP BY ?x } . FILTER ( ?t = ?o ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have a diplomatic relationship with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { FILTER ( ?w = 1 ) . { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?w ) WHERE { ?q property:P530 ?u . ?q rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 } GROUP BY ?q } }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { FILTER ( ?w = 1 ) . { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?w ) WHERE { ?q property:diplomatic_relation ?u . ?q rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
4
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { FILTER ( ?w = 1 ) . { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?w ) WHERE { ?q property:P530 ?u . ?q rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 } GROUP BY ?q } }
Gabon Antigua and Barbuda The Bahamas Grenada
4
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { FILTER ( ?w = 1 ) . { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?w ) WHERE { ?q property:diplomatic_relation ?u . ?q rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P194
Q1752346
USER
Which assembly governs France ?
(Q142,P194,c(Q1752346))
action filter_type
action find
entity Q142
relation P194
type Q1752346
['Q142', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?v WHERE { resource:Q142 property:P194 ?v . ?v rdf:type ontology:Q1752346 }
France
action filter_type
action find
entity France
relation legislative body
type assembly
['France', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?v WHERE { resource:France property:legislative_body ?v . ?v rdf:type ontology:assembly }
[]
assembly
Q632552
SYSTEM
French Parliament
Q632552
(Q142,P194,c(Q1752346))
action filter_type
action find
entity Q142
relation P194
type Q1752346
[ANSWER] governs France
['Q142', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?v WHERE { resource:Q142 property:P194 ?v . ?v rdf:type ontology:Q1752346 }
French Parliament
French Parliament governs France
French Parliament
action filter_type
action find
entity France
relation legislative body
type assembly
['France', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?v WHERE { resource:France property:legislative_body ?v . ?v rdf:type ontology:assembly }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P30
Q2221906
USER
Where are that administrative territory located ?
(Q632552,P30,c(Q2221906))
action filter_type
action find
entity Q142
relation P30
type Q2221906
['Q632552', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?v WHERE { resource:Q142 property:P30 ?v . ?v rdf:type ontology:Q2221906 }
France
action filter_type
action find
entity France
relation continent
type geographic location
['French Parliament', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?v WHERE { resource:France property:continent ?v . ?v rdf:type ontology:geographic_location }
[]
geographic location
Q51 Q15 Q46
SYSTEM
Antarctica, Africa, Europe
Q46 Q15 Q538 Q828 Q51
(Q632552,P30,c(Q2221906))
action filter_type
action find
entity Q142
relation P30
type Q2221906
That administrative territory are located in [ANSWERS]
['Q632552', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?v WHERE { resource:Q142 property:P30 ?v . ?v rdf:type ontology:Q2221906 }
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
['French Parliament', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?v WHERE { resource:France property:continent ?v . ?v rdf:type ontology:geographic_location }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P101
Q2221906 Q21114848
USER
How many geographic locations are the field of work of less number of magazine genres than that geographic location ?
(c(Q21114848),P101,c(Q2221906))
[{'concept': 'Q21114848'}, 'P101', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q627436 ?y . ?z rdf:type ontology:Q21114848 . ?y rdf:type ontology:Q2221906 }
[{'concept': 'magazine genre'}, 'field of work', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:field_of_work ?y . ?z rdf:type ontology:magazine_genre . ?y rdf:type ontology:geographic_location }
[]
geographic location magazine genre
Comparative|Count over More/Less|Single entity type|Clarification
Q51
SYSTEM
Did you mean Antarctica ?
(c(Q21114848),P101,c(Q2221906))
[ANSWER]
[{'concept': 'Q21114848'}, 'P101', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q627436 ?y . ?z rdf:type ontology:Q21114848 . ?y rdf:type ontology:Q2221906 }
Did you mean Antarctica ?
Antarctica
[{'concept': 'magazine genre'}, 'field of work', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:field_of_work ?y . ?z rdf:type ontology:magazine_genre . ?y rdf:type ontology:geographic_location }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Europe. Could you tell me the answer for that?
(c(Q21114848),P101,c(Q2221906))
Q46
[{'concept': 'Q21114848'}, 'P101', {'concept': 'Q2221906'}]
[{'concept': 'magazine genre'}, 'field of work', {'concept': 'geographic location'}]
[]
SYSTEM
15
Q900636 Q51 Q44497 Q107425 Q11708 Q48 Q7204 Q15 Q48214 Q27468 Q1555938 Q837718 Q12585 Q8072 Q27509
(c(Q21114848),P101,c(Q2221906))
[ANSWER]
[{'concept': 'Q21114848'}, 'P101', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q627436 ?y . ?z rdf:type ontology:Q21114848 . ?y rdf:type ontology:Q2221906 }
Central and Eastern Europe Antarctica mining landscape Southeast Asia Asia Middle East Africa Near East Eastern Europe Antarctic energy storage Latin America volcano Central Europe
15
[{'concept': 'magazine genre'}, 'field of work', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:field_of_work ?y . ?z rdf:type ontology:magazine_genre . ?y rdf:type ontology:geographic_location }
[]