Simple Question (Direct)
Simple Question
Q3289555
P22
Q502895
USER
Which person was the father of Marcelle Hertzog-Cachin ?
(Q3289555,P22,c(Q502895))
action filter_type
action find
entity Q3289555
relation P22
type Q502895
['Q3289555', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q3289555 property:P22 ?r . ?r rdf:type ontology:Q502895 }
Marcelle Hertzog-Cachin
action filter_type
action find
entity Marcelle Hertzog-Cachin
relation father
type common name
['Marcelle Hertzog-Cachin', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Marcelle_Hertzog-Cachin property:father ?r . ?r rdf:type ontology:common_name }
[]
common name
Q658479
SYSTEM
Marcel Cachin
Q658479
(Q3289555,P22,c(Q502895))
action filter_type
action find
entity Q3289555
relation P22
type Q502895
[ANSWER] was the father of Marcelle Hertzog-Cachin
['Q3289555', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q3289555 property:P22 ?r . ?r rdf:type ontology:Q502895 }
Marcel Cachin
Marcel Cachin was the father of Marcelle Hertzog-Cachin
Marcel Cachin
action filter_type
action find
entity Marcelle Hertzog-Cachin
relation father
type common name
['Marcelle Hertzog-Cachin', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Marcelle_Hertzog-Cachin property:father ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q658479
P20
Q20667921
USER
Which french administrative division is the place of death of that person ?
(Q658479,P20,c(Q20667921))
action filter_type
action find
entity Q658479
relation P20
type Q20667921
['Q658479', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q20667921 . resource:Q658479 property:P20 ?r }
Marcel Cachin
action filter_type
action find
entity Marcel Cachin
relation place of death
type type of french administrative division
['Marcel Cachin', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:type_of_french_administrative_division . resource:Marcel_Cachin property:place_of_death ?r }
[]
type of french administrative division
Q212987
SYSTEM
Choisy-le-Roi
Q212987
(Q658479,P20,c(Q20667921))
action filter_type
action find
entity Q658479
relation P20
type Q20667921
[ANSWER] is the place of death of that person
['Q658479', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q20667921 . resource:Q658479 property:P20 ?r }
Choisy-le-Roi
Choisy-le-Roi is the place of death of that person
Choisy-le-Roi
action filter_type
action find
entity Marcel Cachin
relation place of death
type type of french administrative division
['Marcel Cachin', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:type_of_french_administrative_division . resource:Marcel_Cachin property:place_of_death ?r }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q1048835 Q20667921
USER
Which political territories have around 1 french administrative division have their center of administration ?
(c(Q20667921),P1376,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
value 1
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:P1376 ?f . ?f rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q20667921 } GROUP BY ?f } . FILTER ( ?i = 1 ) }
action approx
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
value 1
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:capital_of ?f . ?f rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:type_of_french_administrative_division } GROUP BY ?f } . FILTER ( ?i = 1 ) }
[]
political territorial entity type of french administrative division
Q34617 Q2485101 Q778266
SYSTEM
Saint Pierre and Miquelon, County of Chiny, County of Artois
Q1122980 Q2485101 Q34617 Q642314 Q1232887 Q778266
(c(Q20667921),P1376,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
value 1
[ANSWERS] have around 1 french administrative division have their center of administration
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:P1376 ?f . ?f rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q20667921 } GROUP BY ?f } . FILTER ( ?i = 1 ) }
Comtat Venaissin County of Chiny Saint Pierre and Miquelon County of Burgundy County of Savoy County of Artois
Saint Pierre and Miquelon, County of Chiny and County of Artois have around 1 french administrative division have their center of administration
Saint Pierre and Miquelon County of Chiny County of Artois
action approx
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
value 1
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:capital_of ?f . ?f rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:type_of_french_administrative_division } GROUP BY ?f } . FILTER ( ?i = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q1048835
USER
How many political territories have diplomatic relations with around 99 administrative territories and political territories ?
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
value 99
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?q rdf:type ?e } GROUP BY ?t } . FILTER ( ?r = 99 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 99
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?q rdf:type ?e } GROUP BY ?t } . FILTER ( ?r = 99 ) }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
value 99
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?q rdf:type ?e } GROUP BY ?t } . FILTER ( ?r = 99 ) }
Germany Australia
2
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 99
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?q rdf:type ?e } GROUP BY ?t } . FILTER ( ?r = 99 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q1048835 Q15617994
USER
How many political territories have diplomatic relations with atleast 107 political territories and administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
value 107
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?g ) WHERE { VALUES ( ?q ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?v rdf:type ?q } GROUP BY ?b } . FILTER ( ?g >= 107 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 107
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?g ) WHERE { VALUES ( ?q ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?v rdf:type ?q } GROUP BY ?b } . FILTER ( ?g >= 107 ) }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
value 107
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?g ) WHERE { VALUES ( ?q ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?v rdf:type ?q } GROUP BY ?b } . FILTER ( ?g >= 107 ) }
Germany Australia
2
action count
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 107
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?g ) WHERE { VALUES ( ?q ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?v rdf:type ?q } GROUP BY ?b } . FILTER ( ?g >= 107 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories have diplomatic relations with min number of political territories ?
(c(Q15617994),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?p ) { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?w ) WHERE { ?x property:P530 ?m . ?x rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } GROUP BY ?x } } . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?y ) WHERE { ?f property:P530 ?a . ?a rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?y = ?p ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?p ) { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?w ) WHERE { ?x property:diplomatic_relation ?m . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?x } } . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?y ) WHERE { ?f property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?y = ?p ) }
[]
political territorial entity designation for an administrative territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q399 Q398 Q790 Q236 Q842 Q858
(c(Q15617994),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWERS] have diplomatic relations with min number of political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?p ) { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?w ) WHERE { ?x property:P530 ?m . ?x rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } GROUP BY ?x } } . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?y ) WHERE { ?f property:P530 ?a . ?a rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?y = ?p ) }
Yemen Armenia Bahrain Haiti Montenegro Oman Syria
Yemen, Syria and Oman have diplomatic relations with min number of political territories
Yemen Syria Oman
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?p ) { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?w ) WHERE { ?x property:diplomatic_relation ?m . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?x } } . { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?y ) WHERE { ?f property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?y = ?p ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2088357 Q838948
USER
How many administrative territories are the origins of greater number of musical ensembles or works of art than that administrative territory ?
(c(Q2088357)|c(Q838948),P495,c(Q15617994))
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?a ) { ( ?z ) ( ?x ) } . ?a property:P495 ?y } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?a ) { ( ?z ) ( ?x ) } . ?a property:country_of_origin ?y } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
designation for an administrative territorial entity musical ensemble work of art
Comparative|Count over More/Less|Mult. entity type|Clarification
Q858
SYSTEM
Did you mean Syria ?
(c(Q2088357)|c(Q838948),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?a ) { ( ?z ) ( ?x ) } . ?a property:P495 ?y } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
Did you mean Syria ?
Syria
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?a ) { ( ?z ) ( ?x ) } . ?a property:country_of_origin ?y } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q2088357)|c(Q838948),P495,c(Q15617994))
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
71
Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q717 Q837 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q794 Q884 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q854 Q424 Q232 Q20 Q1041 Q27 Q28 Q189 Q843 Q1028 Q225 Q224 Q222 Q96 Q17 Q902 Q974 Q1033 Q191 Q298 Q750 Q212 Q213 Q211 Q214 Q215 Q218 Q219 Q833 Q836 Q79 Q77 Q948 Q29 Q869
(c(Q2088357)|c(Q838948),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
Israel Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Venezuela Nepal Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iran South Korea Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia Sri Lanka Cambodia Kazakhstan Norway Senegal Ireland Hungary Iceland Pakistan Morocco Bosnia and Herzegovina Croatia Albania Mexico Japan Bangladesh Democratic Republic of the Congo Nigeria Estonia Chile Bolivia Ukraine Czech Republic Latvia Slovakia Slovenia Romania Bulgaria Malaysia Myanmar Egypt Uruguay Tunisia Spain Thailand
71
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with atleast 8 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 8
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?n ) WHERE { ?l property:P530 ?t . ?l rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?n >= 8 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 8
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?n ) WHERE { ?l property:diplomatic_relation ?t . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?n >= 8 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q142 Q148 Q159 Q155 Q30 Q929 Q38 Q230 Q184 Q225 Q17 Q114 Q858 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 8
[ANSWERS] have diplomatic associations with atleast 8 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?n ) WHERE { ?l property:P530 ?t . ?l rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?n >= 8 ) }
Israel Yemen France People's Republic of China Russia Brazil United States of America Central African Republic Italy Georgia Belarus Bosnia and Herzegovina Japan Kenya Syria Cape Verde Zambia
Italy, Brazil and United States of America have diplomatic associations with atleast 8 administrative territories
Italy Brazil United States of America
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 8
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?n ) WHERE { ?l property:diplomatic_relation ?t . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?n >= 8 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q516761
P530
Q15617994
USER
Do Fuchstal have diplomatic associations with those ones ?
(Q516761,P530,Q38) (Q516761,P530,Q155) (Q516761,P530,Q30)
action is_in
entity prev_answer
action find
entity Q516761
relation P530
['Q516761', 'P530', 'Q38'] ['Q516761', 'P530', 'Q155'] ['Q516761', 'P530', 'Q30']
ASK WHERE { resource:Q516761 property:P530 ?f . VALUES ( ?f ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q142 ) } }
Fuchstal
action is_in
entity prev_answer
action find
entity Fuchstal
relation diplomatic relation
['Fuchstal', 'diplomatic relation', 'Italy'] ['Fuchstal', 'diplomatic relation', 'Brazil'] ['Fuchstal', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Fuchstal property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Israel ) ( resource:Yemen ) ( resource:France ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q516761,P530,Q38) (Q516761,P530,Q155) (Q516761,P530,Q30)
action is_in
entity prev_answer
action find
entity Q516761
relation P530
[ANSWER]
['Q516761', 'P530', 'Q38'] ['Q516761', 'P530', 'Q155'] ['Q516761', 'P530', 'Q30']
ASK WHERE { resource:Q516761 property:P530 ?f . VALUES ( ?f ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q142 ) } }
No
action is_in
entity prev_answer
action find
entity Fuchstal
relation diplomatic relation
['Fuchstal', 'diplomatic relation', 'Italy'] ['Fuchstal', 'diplomatic relation', 'Brazil'] ['Fuchstal', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Fuchstal property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Israel ) ( resource:Yemen ) ( resource:France ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3289555 Q393419
P27
Q15617994
USER
Is Aggsbach the native country of Marcelle Hertzog-Cachin ?
(Q3289555,P27,Q393419)
action is_in
entity Q393419
action find
entity Q3289555
relation P27
['Q3289555', 'P27', 'Q393419']
ASK WHERE { resource:Q3289555 property:P27 resource:Q393419 }
Marcelle Hertzog-Cachin Aggsbach
action is_in
entity Aggsbach
action find
entity Marcelle Hertzog-Cachin
relation country of citizenship
['Marcelle Hertzog-Cachin', 'country of citizenship', 'Aggsbach']
ASK WHERE { resource:Marcelle_Hertzog-Cachin property:country_of_citizenship resource:Aggsbach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q3289555,P27,Q393419)
action is_in
entity Q393419
action find
entity Q3289555
relation P27
[ANSWER]
['Q3289555', 'P27', 'Q393419']
ASK WHERE { resource:Q3289555 property:P27 resource:Q393419 }
No
action is_in
entity Aggsbach
action find
entity Marcelle Hertzog-Cachin
relation country of citizenship
['Marcelle Hertzog-Cachin', 'country of citizenship', 'Aggsbach']
ASK WHERE { resource:Marcelle_Hertzog-Cachin property:country_of_citizenship resource:Aggsbach }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q858
P530
Q15617994 Q183366
USER
How many administrative territories and territories have diplomatic relationships with Syria ?
(Q858,P530,c(Q15617994)) (Q858,P530,c(Q183366))
action count
action union
action filter_type
action find
entity Q858
relation P530
type Q15617994
action filter_type
action find
entity Q858
relation P530
type Q183366
['Q858', 'P530', {'concept': 'Q15617994'}] ['Q858', 'P530', {'concept': 'Q183366'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { { resource:Q858 property:P530 ?k . ?k rdf:type ontology:Q183366 } UNION { ?k rdf:type ontology:Q15617994 . resource:Q858 property:P530 ?k } }
Syria
action count
action union
action filter_type
action find
entity Syria
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Syria
relation diplomatic relation
type territory
['Syria', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Syria', 'diplomatic relation', {'concept': 'territory'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { { resource:Syria property:diplomatic_relation ?k . ?k rdf:type ontology:territory } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Syria property:diplomatic_relation ?k } }
[]
designation for an administrative territorial entity territory
SYSTEM
14 administrative territories and 1 territories
Q805 Q810 Q79 Q801 Q41 Q851 Q148 Q796 Q822 Q17 Q30 Q846 Q399 Q423 Q159
(Q858,P530,c(Q15617994)) (Q858,P530,c(Q183366))
action count
action union
action filter_type
action find
entity Q858
relation P530
type Q15617994
action filter_type
action find
entity Q858
relation P530
type Q183366
[ANSWER]
['Q858', 'P530', {'concept': 'Q15617994'}] ['Q858', 'P530', {'concept': 'Q183366'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { { resource:Q858 property:P530 ?k . ?k rdf:type ontology:Q183366 } UNION { ?k rdf:type ontology:Q15617994 . resource:Q858 property:P530 ?k } }
Yemen Jordan Egypt Israel Greece Saudi Arabia People's Republic of China Iraq Lebanon Japan United States of America Qatar Armenia North Korea Russia
14 administrative territories and 1 territories
action count
action union
action filter_type
action find
entity Syria
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Syria
relation diplomatic relation
type territory
['Syria', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Syria', 'diplomatic relation', {'concept': 'territory'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { { resource:Syria property:diplomatic_relation ?k . ?k rdf:type ontology:territory } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Syria property:diplomatic_relation ?k } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q110159 Q155
P530 P85
Q15617994
USER
Which administrative territories have diplomatic relations with Brazil and do not use Cântico da Liberdade as their anthem ?
AND((c(Q15617994),P530,Q155), NOT((c(Q15617994),P85,Q110159)))
action filter_type
action difference
action find_reverse
entity Q155
relation P530
action find_reverse
entity Q110159
relation P85
type Q15617994
{'AND': [[{'concept': 'Q15617994'}, 'P530', 'Q155'], {'NOT': [[{'concept': 'Q15617994'}, 'P85', 'Q110159']]}]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . MINUS { ?p property:P85 resource:Q110159 } . ?p property:P530 resource:Q155 }
Cântico da Liberdade Brazil
action filter_type
action difference
action find_reverse
entity Brazil
relation diplomatic relation
action find_reverse
entity Cântico da Liberdade
relation anthem
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Brazil'], {'NOT': [[{'concept': 'designation for an administrative territorial entity'}, 'anthem', 'Cântico da Liberdade']]}]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . MINUS { ?p property:anthem resource:Cântico_da_Liberdade } . ?p property:diplomatic_relation resource:Brazil }
[]
designation for an administrative territorial entity
Q96 Q212 Q917 Q77 Q750 Q801 Q258 Q43 Q38 Q45
SYSTEM
Some of them are Mexico, Ukraine, Bhutan, Uruguay, Bolivia, Israel, South Africa, Turkey, Italy, Portugal
Q96 Q801 Q800 Q843 Q184 Q1029 Q822 Q241 Q419 Q244 Q668 Q414 Q574 Q142 Q145 Q148 Q783 Q17 Q30 Q36 Q79 Q77 Q38 Q733 Q739 Q423 Q717 Q1033 Q1016 Q734 Q962 Q736 Q298 Q252 Q399 Q403 Q230 Q258 Q750 Q212 Q213 Q983 Q45 Q159 Q43 Q41 Q790 Q796 Q794 Q917 Q953 Q29 Q958 Q1049 Q916
AND((c(Q15617994),P530,Q155), NOT((c(Q15617994),P85,Q110159)))
action filter_type
action difference
action find_reverse
entity Q155
relation P530
action find_reverse
entity Q110159
relation P85
type Q15617994
[ANSWERS] have diplomatic relations with Brazil and do not use Cântico da Liberdade as their anthem
{'AND': [[{'concept': 'Q15617994'}, 'P530', 'Q155'], {'NOT': [[{'concept': 'Q15617994'}, 'P85', 'Q110159']]}]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . MINUS { ?p property:P85 resource:Q110159 } . ?p property:P530 resource:Q155 }
Mexico Israel Costa Rica Pakistan Belarus Mozambique Lebanon Cuba Peru Barbados India Argentina East Timor France United Kingdom People's Republic of China Honduras Japan United States of America Poland Egypt Uruguay Italy Paraguay Colombia North Korea Venezuela Nigeria Libya Guyana Benin Ecuador Chile Indonesia Armenia Serbia Georgia South Africa Bolivia Ukraine Czech Republic Equatorial Guinea Portugal Russia Turkey Greece Haiti Iraq Iran Bhutan Zambia Spain South Sudan Sudan Angola
Mexico, Ukraine, Bhutan, Uruguay, Bolivia, Israel, South Africa, Turkey, Italy and Portugal have diplomatic relations with Brazil and do not use Cântico da Liberdade as their anthem
Mexico Ukraine Bhutan Uruguay Bolivia Israel South Africa Turkey Italy Portugal
action filter_type
action difference
action find_reverse
entity Brazil
relation diplomatic relation
action find_reverse
entity Cântico da Liberdade
relation anthem
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Brazil'], {'NOT': [[{'concept': 'designation for an administrative territorial entity'}, 'anthem', 'Cântico da Liberdade']]}]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . MINUS { ?p property:anthem resource:Cântico_da_Liberdade } . ?p property:diplomatic_relation resource:Brazil }
[]
Clarification
Simple Question|Single Entity|Indirect
Q43
P610
Q14524493
USER
Which is the highest peak of that administrative territory ?
(Q43,P610,c(Q14524493))
action filter_type
action find
entity Q43
relation P610
type Q14524493
['Q43', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?x WHERE { resource:Q43 property:P610 ?x . ?x rdf:type ontology:Q14524493 }
Turkey
action filter_type
action find
entity Turkey
relation highest point
type terrain
['Turkey', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?x WHERE { resource:Turkey property:highest_point ?x . ?x rdf:type ontology:terrain }
[]
terrain
Clarification for simple ques.
Q212
SYSTEM
Did you mean Ukraine ?
Q96 Q212 Q917 Q77 Q750 Q801 Q258 Q43 Q38 Q45
(Q96,P610,c(Q14524493)) (Q212,P610,c(Q14524493)) (Q917,P610,c(Q14524493)) (Q77,P610,c(Q14524493)) (Q750,P610,c(Q14524493)) (Q801,P610,c(Q14524493)) (Q258,P610,c(Q14524493)) (Q43,P610,c(Q14524493)) (Q38,P610,c(Q14524493)) (Q45,P610,c(Q14524493))
[ANSWER]
['Q96', 'P610', {'concept': 'Q14524493'}] ['Q212', 'P610', {'concept': 'Q14524493'}] ['Q917', 'P610', {'concept': 'Q14524493'}] ['Q77', 'P610', {'concept': 'Q14524493'}] ['Q750', 'P610', {'concept': 'Q14524493'}] ['Q801', 'P610', {'concept': 'Q14524493'}] ['Q258', 'P610', {'concept': 'Q14524493'}] ['Q43', 'P610', {'concept': 'Q14524493'}] ['Q38', 'P610', {'concept': 'Q14524493'}] ['Q45', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?x WHERE { resource:Q43 property:P610 ?x . ?x rdf:type ontology:Q14524493 }
Mexico Ukraine Bhutan Uruguay Bolivia Israel South Africa Turkey Italy Portugal
Did you mean Ukraine ?
Ukraine
['Mexico', 'highest point', {'concept': 'terrain'}] ['Ukraine', 'highest point', {'concept': 'terrain'}] ['Bhutan', 'highest point', {'concept': 'terrain'}] ['Uruguay', 'highest point', {'concept': 'terrain'}] ['Bolivia', 'highest point', {'concept': 'terrain'}] ['Israel', 'highest point', {'concept': 'terrain'}] ['South Africa', 'highest point', {'concept': 'terrain'}] ['Turkey', 'highest point', {'concept': 'terrain'}] ['Italy', 'highest point', {'concept': 'terrain'}] ['Portugal', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?x WHERE { resource:Turkey property:highest_point ?x . ?x rdf:type ontology:terrain }
[]
Simple Question (Coreferenced)
USER
No, I meant Turkey. Could you tell me the answer for that?
(Q43,P610,c(Q14524493))
Q43
['Q43', 'P610', {'concept': 'Q14524493'}]
['Turkey', 'highest point', {'concept': 'terrain'}]
[]
Q72303
SYSTEM
Mount Ararat
Q72303
(Q43,P610,c(Q14524493))
action filter_type
action find
entity Q43
relation P610
type Q14524493
The highest peak of that administrative territory is the [ANSWER]
['Q43', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?x WHERE { resource:Q43 property:P610 ?x . ?x rdf:type ontology:Q14524493 }
Mount Ararat
The highest peak of that administrative territory is the Mount Ararat
Mount Ararat
action filter_type
action find
entity Turkey
relation highest point
type terrain
['Turkey', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?x WHERE { resource:Turkey property:highest_point ?x . ?x rdf:type ontology:terrain }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q72303 Q5468968
P610
Q15617994
USER
Does Forest Hills Public Schools have that terrain as its highest point ?
(Q5468968,P610,Q72303)
action is_in
entity Q5468968
action find
entity Q72303
relation P610
['Q5468968', 'P610', 'Q72303']
ASK WHERE { resource:Q72303 property:P610 resource:Q5468968 }
Mount Ararat Forest Hills Public Schools
action is_in
entity Forest Hills Public Schools
action find
entity Mount Ararat
relation highest point
['Forest Hills Public Schools', 'highest point', 'Mount Ararat']
ASK WHERE { resource:Mount_Ararat property:highest_point resource:Forest_Hills_Public_Schools }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5468968,P610,Q72303)
action is_in
entity Q5468968
action find
entity Q72303
relation P610
[ANSWER]
['Q5468968', 'P610', 'Q72303']
ASK WHERE { resource:Q72303 property:P610 resource:Q5468968 }
No
action is_in
entity Forest Hills Public Schools
action find
entity Mount Ararat
relation highest point
['Forest Hills Public Schools', 'highest point', 'Mount Ararat']
ASK WHERE { resource:Mount_Ararat property:highest_point resource:Forest_Hills_Public_Schools }
[]