Simple Question (Direct)
Simple Question
Q3790743
P495
Q15617994
USER
What is the origin of I due gattoni a nove code... e mezza ad Amsterdam ?
(Q3790743,P495,c(Q15617994))
action filter_type
action find
entity Q3790743
relation P495
type Q15617994
['Q3790743', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q3790743 property:P495 ?c . ?c rdf:type ontology:Q15617994 }
I due gattoni a nove code... e mezza ad Amsterdam
action filter_type
action find
entity I due gattoni a nove code... e mezza ad Amsterdam
relation country of origin
type designation for an administrative territorial entity
['I due gattoni a nove code... e mezza ad Amsterdam', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:I_due_gattoni_a_nove_code..._e_mezza_ad_Amsterdam property:country_of_origin ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3790743,P495,c(Q15617994))
action filter_type
action find
entity Q3790743
relation P495
type Q15617994
[ANSWER] ... the origin of I due gattoni a nove code is
['Q3790743', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q3790743 property:P495 ?c . ?c rdf:type ontology:Q15617994 }
Italy
Italy ... the origin of I due gattoni a nove code is
Italy
action filter_type
action find
entity I due gattoni a nove code... e mezza ad Amsterdam
relation country of origin
type designation for an administrative territorial entity
['I due gattoni a nove code... e mezza ad Amsterdam', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:I_due_gattoni_a_nove_code..._e_mezza_ad_Amsterdam property:country_of_origin ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3790743
P86
Q502895
USER
Who did the compostion for that work of art ?
(Q38,P86,c(Q502895))
action filter_type
action find
entity Q3790743
relation P86
type Q502895
['Q38', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q3790743 property:P86 ?s . ?s rdf:type ontology:Q502895 }
I due gattoni a nove code... e mezza ad Amsterdam
action filter_type
action find
entity I due gattoni a nove code... e mezza ad Amsterdam
relation composer
type common name
['Italy', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:I_due_gattoni_a_nove_code..._e_mezza_ad_Amsterdam property:composer ?s . ?s rdf:type ontology:common_name }
[]
common name
Q15644512
SYSTEM
Ubaldo Continiello
Q15644512
(Q38,P86,c(Q502895))
action filter_type
action find
entity Q3790743
relation P86
type Q502895
[ANSWER] did the compostion for that work of art
['Q38', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q3790743 property:P86 ?s . ?s rdf:type ontology:Q502895 }
Ubaldo Continiello
Ubaldo Continiello did the compostion for that work of art
Ubaldo Continiello
action filter_type
action find
entity I due gattoni a nove code... e mezza ad Amsterdam
relation composer
type common name
['Italy', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:I_due_gattoni_a_nove_code..._e_mezza_ad_Amsterdam property:composer ?s . ?s rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q15644512 Q38
P27
Q15617994
USER
Is Italy the native country of that person ?
(Q15644512,P27,Q38)
action is_in
entity Q38
action find
entity Q15644512
relation P27
['Q15644512', 'P27', 'Q38']
ASK WHERE { resource:Q15644512 property:P27 resource:Q38 }
Ubaldo Continiello Italy
action is_in
entity Italy
action find
entity Ubaldo Continiello
relation country of citizenship
['Ubaldo Continiello', 'country of citizenship', 'Italy']
ASK WHERE { resource:Ubaldo_Continiello property:country_of_citizenship resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q15644512,P27,Q38)
action is_in
entity Q38
action find
entity Q15644512
relation P27
[ANSWER]
['Q15644512', 'P27', 'Q38']
ASK WHERE { resource:Q15644512 property:P27 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Ubaldo Continiello
relation country of citizenship
['Ubaldo Continiello', 'country of citizenship', 'Italy']
ASK WHERE { resource:Ubaldo_Continiello property:country_of_citizenship resource:Italy }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15644512
P21
Q290
USER
What is the sex of Ubaldo Continiello ?
(Q15644512,P21,c(Q290))
action filter_type
action find
entity Q15644512
relation P21
type Q290
['Q15644512', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q15644512 property:P21 ?a . ?a rdf:type ontology:Q290 }
Ubaldo Continiello
action filter_type
action find
entity Ubaldo Continiello
relation gender
type sex
['Ubaldo Continiello', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Ubaldo_Continiello property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q15644512,P21,c(Q290))
action filter_type
action find
entity Q15644512
relation P21
type Q290
The sex of Ubaldo Continiello is the [ANSWER]
['Q15644512', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q15644512 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
The sex of Ubaldo Continiello is the male
male
action filter_type
action find
entity Ubaldo Continiello
relation gender
type sex
['Ubaldo Continiello', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Ubaldo_Continiello property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15644512
P19
Q15617994
USER
Which administrative territory is the birthplace of that person ?
(Q6581097,P19,c(Q15617994))
action filter_type
action find
entity Q15644512
relation P19
type Q15617994
['Q6581097', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q15644512 property:P19 ?s . ?s rdf:type ontology:Q15617994 }
Ubaldo Continiello
action filter_type
action find
entity Ubaldo Continiello
relation place of birth
type designation for an administrative territorial entity
['male', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Ubaldo_Continiello property:place_of_birth ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55064
SYSTEM
Monteverde, Campania
Q55064
(Q6581097,P19,c(Q15617994))
action filter_type
action find
entity Q15644512
relation P19
type Q15617994
[ANSWER] is the birthplace of that person
['Q6581097', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q15644512 property:P19 ?s . ?s rdf:type ontology:Q15617994 }
Monteverde, Campania
Monteverde, Campania is the birthplace of that person
Monteverde, Campania
action filter_type
action find
entity Ubaldo Continiello
relation place of birth
type designation for an administrative territorial entity
['male', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Ubaldo_Continiello property:place_of_birth ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15644512
P20
Q56061
USER
Where did that person expire ?
(Q55064,P20,c(Q56061))
action filter_type
action find
entity Q15644512
relation P20
type Q56061
['Q55064', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q15644512 property:P20 ?o . ?o rdf:type ontology:Q56061 }
Ubaldo Continiello
action filter_type
action find
entity Ubaldo Continiello
relation place of death
type administrative territorial entity
['Monteverde, Campania', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Ubaldo_Continiello property:place_of_death ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q55064,P20,c(Q56061))
action filter_type
action find
entity Q15644512
relation P20
type Q56061
That person expired at [ANSWER]
['Q55064', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q15644512 property:P20 ?o . ?o rdf:type ontology:Q56061 }
Rome
That person expired at Rome
Rome
action filter_type
action find
entity Ubaldo Continiello
relation place of death
type administrative territorial entity
['Monteverde, Campania', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Ubaldo_Continiello property:place_of_death ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q817
P530
Q1048835 Q15617994 Q15617994
USER
How many administrative territories are known to have diplomatic connections with more number of political territories or administrative territories than Kuwait ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q817
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?r WHERE { { ?r property:P530 ?x . ?r rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } UNION { ?r property:P530 ?x . ?r rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { resource:Q817 property:P530 ?e . { { ?e rdf:type ontology:Q1048835 } UNION { ?e rdf:type ontology:Q15617994 } } } } . FILTER ( ?s > ?o ) }
Kuwait
action count
action greater
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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_multi_types
action find
entity Kuwait
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?r WHERE { { ?r property:diplomatic_relation ?x . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r property:diplomatic_relation ?x . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { resource:Kuwait property:diplomatic_relation ?e . { { ?e rdf:type ontology:political_territorial_entity } UNION { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?s > ?o ) }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
117
Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q1009 Q34020 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q817
relation P530
type Q1048835
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?r WHERE { { ?r property:P530 ?x . ?r rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } UNION { ?r property:P530 ?x . ?r rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { resource:Q817 property:P530 ?e . { { ?e rdf:type ontology:Q1048835 } UNION { ?e rdf:type ontology:Q15617994 } } } } . FILTER ( ?s > ?o ) }
Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Estonia Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Cameroon Niue East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
117
action count
action greater
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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_multi_types
action find
entity Kuwait
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?r WHERE { { ?r property:diplomatic_relation ?x . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r property:diplomatic_relation ?x . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { resource:Kuwait property:diplomatic_relation ?e . { { ?e rdf:type ontology:political_territorial_entity } UNION { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?s > ?o ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1028
P530
Q1048835 Q15617994 Q15617994
USER
And what about Morocco?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q1028
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { FILTER ( ?f > ?k ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:Q1028 property:P530 ?i . { ?i rdf:type ?p . VALUES ( ?p ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) ?v WHERE { { ?v property:P530 ?w . ?v rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } UNION { ?v property:P530 ?w . ?v rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 } } GROUP BY ?v } }
Morocco
action count
action greater
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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_multi_types
action find
entity Morocco
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { FILTER ( ?f > ?k ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:Morocco property:diplomatic_relation ?i . { ?i rdf:type ?p . VALUES ( ?p ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) ?v WHERE { { ?v property:diplomatic_relation ?w . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } UNION { ?v property:diplomatic_relation ?w . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?v } }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
90
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q736 Q230 Q233 Q20 Q1041 Q27 Q28 Q843 Q184 Q1029 Q228 Q227 Q225 Q224 Q222 Q96 Q229 Q347 Q17 Q902 Q1033 Q1030 Q298 Q115 Q114 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q79 Q77 Q858 Q878 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q1028
relation P530
type Q1048835
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { FILTER ( ?f > ?k ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:Q1028 property:P530 ?i . { ?i rdf:type ?p . VALUES ( ?p ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) ?v WHERE { { ?v property:P530 ?w . ?v rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } UNION { ?v property:P530 ?w . ?v rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 } } GROUP BY ?v } }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Ecuador Georgia Malta Norway Senegal Ireland Hungary Pakistan Belarus Mozambique Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Liechtenstein Japan Bangladesh Nigeria Namibia Chile Ethiopia Kenya Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
90
action count
action greater
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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_multi_types
action find
entity Morocco
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { FILTER ( ?f > ?k ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:Morocco property:diplomatic_relation ?i . { ?i rdf:type ?p . VALUES ( ?p ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) ?v WHERE { { ?v property:diplomatic_relation ?w . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } UNION { ?v property:diplomatic_relation ?w . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?v } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q220
P190
Q486972
USER
Which human settlement is twin city of Rome ?
(Q220,P190,c(Q486972))
action filter_type
action find
entity Q220
relation P190
type Q486972
['Q220', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { resource:Q220 property:P190 ?d . ?d rdf:type ontology:Q486972 }
Rome
action filter_type
action find
entity Rome
relation sister city
type human settlement
['Rome', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { resource:Rome property:sister_city ?d . ?d rdf:type ontology:human_settlement }
[]
human settlement
Q31487
SYSTEM
Kraków
Q31487
(Q220,P190,c(Q486972))
action filter_type
action find
entity Q220
relation P190
type Q486972
[ANSWER] is twin city of Rome
['Q220', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { resource:Q220 property:P190 ?d . ?d rdf:type ontology:Q486972 }
Kraków
Kraków is twin city of Rome
Kraków
action filter_type
action find
entity Rome
relation sister city
type human settlement
['Rome', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { resource:Rome property:sister_city ?d . ?d rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q220
P276
Q625994
USER
Which convention has its location as that administrative territory ?
(c(Q625994),P276,Q31487)
action filter_type
action find_reverse
entity Q220
relation P276
type Q625994
[{'concept': 'Q625994'}, 'P276', 'Q31487']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q625994 . ?d property:P276 resource:Q220 }
Rome
action filter_type
action find_reverse
entity Rome
relation location
type convention
[{'concept': 'convention'}, 'location', 'Kraków']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:convention . ?d property:location resource:Rome }
[]
convention
Q24406731
SYSTEM
ELAG 2002
Q24406731
(c(Q625994),P276,Q31487)
action filter_type
action find_reverse
entity Q220
relation P276
type Q625994
[ANSWER] has its location as that administrative territory
[{'concept': 'Q625994'}, 'P276', 'Q31487']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q625994 . ?d property:P276 resource:Q220 }
ELAG 2002
ELAG 2002 has its location as that administrative territory
ELAG 2002
action filter_type
action find_reverse
entity Rome
relation location
type convention
[{'concept': 'convention'}, 'location', 'Kraków']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:convention . ?d property:location resource:Rome }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15617994 Q83620 Q15617994
USER
Which administrative territories are approximately 1 thoroughfares or administrative territories named after ?
(c(Q83620)|c(Q15617994),P138,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q83620
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q15617994
value 1
[[{'concept': 'Q83620'}, {'concept': 'Q15617994'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?x WHERE { { ?l property:P138 ?x . ?x rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } UNION { ?l property:P138 ?x . ?x rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q83620 } } GROUP BY ?x } }
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 1
[[{'concept': 'thoroughfare'}, {'concept': 'designation for an administrative territorial entity'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?x WHERE { { ?l property:named_after ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?l property:named_after ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:thoroughfare } } GROUP BY ?x } }
[]
designation for an administrative territorial entity thoroughfare designation for an administrative territorial entity
Q236 Q13645 Q46130
SYSTEM
Montenegro, Tempio Pausania, Rhône
Q159856 Q236 Q46130 Q1142326 Q13645 Q155019 Q107426 Q10957559 Q333389 Q697787
(c(Q83620)|c(Q15617994),P138,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q83620
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q15617994
value 1
[ANSWERS] are approximately 1 thoroughfares or administrative territories named after
[[{'concept': 'Q83620'}, {'concept': 'Q15617994'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?x WHERE { { ?l property:P138 ?x . ?x rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } UNION { ?l property:P138 ?x . ?x rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q83620 } } GROUP BY ?x } }
Duchy of Brabant Montenegro Rhône Seine Tempio Pausania Duchy of Lorraine Anjou Moldavia Palau Duchy of Limburg
Montenegro, Tempio Pausania and Rhône are approximately 1 thoroughfares or administrative territories named after
Montenegro Tempio Pausania Rhône
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 1
[[{'concept': 'thoroughfare'}, {'concept': 'designation for an administrative territorial entity'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?x WHERE { { ?l property:named_after ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?l property:named_after ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:thoroughfare } } GROUP BY ?x } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q46130
P1071
Q185217
USER
Which dairy products have that administrative territory as their terminal assembly location ?
(c(Q185217),P1071,Q46130)
action filter_type
action find_reverse
entity Q46130
relation P1071
type Q185217
[{'concept': 'Q185217'}, 'P1071', 'Q46130']
SELECT DISTINCT ?t WHERE { ?t property:P1071 resource:Q46130 . ?t rdf:type ontology:Q185217 }
Rhône
action filter_type
action find_reverse
entity Rhône
relation location of final assembly
type dairy product
[{'concept': 'dairy product'}, 'location of final assembly', 'Rhône']
SELECT DISTINCT ?t WHERE { ?t property:location_of_final_assembly resource:Rhône . ?t rdf:type ontology:dairy_product }
[]
dairy product
Clarification for simple ques.
Q236
SYSTEM
Did you mean Montenegro ?
Q236 Q13645 Q46130
(c(Q185217),P1071,Q236) (c(Q185217),P1071,Q13645) (c(Q185217),P1071,Q46130)
[ANSWER]
[{'concept': 'Q185217'}, 'P1071', 'Q236'] [{'concept': 'Q185217'}, 'P1071', 'Q13645'] [{'concept': 'Q185217'}, 'P1071', 'Q46130']
SELECT DISTINCT ?t WHERE { ?t property:P1071 resource:Q46130 . ?t rdf:type ontology:Q185217 }
Montenegro Tempio Pausania Rhône
Did you mean Montenegro ?
Montenegro
[{'concept': 'dairy product'}, 'location of final assembly', 'Montenegro'] [{'concept': 'dairy product'}, 'location of final assembly', 'Tempio Pausania'] [{'concept': 'dairy product'}, 'location of final assembly', 'Rhône']
SELECT DISTINCT ?t WHERE { ?t property:location_of_final_assembly resource:Rhône . ?t rdf:type ontology:dairy_product }
[]
Simple Question (Coreferenced)
USER
No, I meant Rhône. Could you tell me the answer for that?
(c(Q185217),P1071,Q46130)
Q46130
[{'concept': 'Q185217'}, 'P1071', 'Q46130']
[{'concept': 'dairy product'}, 'location of final assembly', 'Rhône']
[]
Q517409 Q390266 Q1067646
SYSTEM
Mâconnais cheese, Emmental français est-central, charolais
Q517409 Q390266 Q1067646
(c(Q185217),P1071,Q46130)
action filter_type
action find_reverse
entity Q46130
relation P1071
type Q185217
[ANSWERS] have that administrative territory as their terminal assembly location
[{'concept': 'Q185217'}, 'P1071', 'Q46130']
SELECT DISTINCT ?t WHERE { ?t property:P1071 resource:Q46130 . ?t rdf:type ontology:Q185217 }
Mâconnais cheese Emmental français est-central charolais
Mâconnais cheese, Emmental français est-central and charolais have that administrative territory as their terminal assembly location
Mâconnais cheese Emmental français est-central charolais
action filter_type
action find_reverse
entity Rhône
relation location of final assembly
type dairy product
[{'concept': 'dairy product'}, 'location of final assembly', 'Rhône']
SELECT DISTINCT ?t WHERE { ?t property:location_of_final_assembly resource:Rhône . ?t rdf:type ontology:dairy_product }
[]