Simple Question (Direct)
Simple Question
Q3936084
P21
Q290
USER
Which sex does Rino Di Fraia have ?
(Q3936084,P21,c(Q290))
action filter_type
action find
entity Q3936084
relation P21
type Q290
['Q3936084', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q290 . resource:Q3936084 property:P21 ?s }
Rino Di Fraia
action filter_type
action find
entity Rino Di Fraia
relation gender
type sex
['Rino Di Fraia', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sex . resource:Rino_Di_Fraia property:gender ?s }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3936084,P21,c(Q290))
action filter_type
action find
entity Q3936084
relation P21
type Q290
[ANSWER]
['Q3936084', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q290 . resource:Q3936084 property:P21 ?s }
male
male
action filter_type
action find
entity Rino Di Fraia
relation gender
type sex
['Rino Di Fraia', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sex . resource:Rino_Di_Fraia property:gender ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3936084
P20
Q15617994
USER
Where did the demise of Rino Di Fraia occur ?
(Q3936084,P20,c(Q15617994))
action filter_type
action find
entity Q3936084
relation P20
type Q15617994
['Q3936084', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q3936084 property:P20 ?t }
Rino Di Fraia
action filter_type
action find
entity Rino Di Fraia
relation place of death
type designation for an administrative territorial entity
['Rino Di Fraia', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Rino_Di_Fraia property:place_of_death ?t }
[]
designation for an administrative territorial entity
Q194081
SYSTEM
Sestri Levante
Q194081
(Q3936084,P20,c(Q15617994))
action filter_type
action find
entity Q3936084
relation P20
type Q15617994
[ANSWER]
['Q3936084', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q3936084 property:P20 ?t }
Sestri Levante
Sestri Levante
action filter_type
action find
entity Rino Di Fraia
relation place of death
type designation for an administrative territorial entity
['Rino Di Fraia', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Rino_Di_Fraia property:place_of_death ?t }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q194081 Q3742618
P19
Q502895
USER
Does Ferdinando Lambruschini have location of birth at that administrative territory ?
(Q3742618,P19,Q194081)
action is_in
entity Q194081
action find
entity Q3742618
relation P19
['Q3742618', 'P19', 'Q194081']
ASK WHERE { resource:Q3742618 property:P19 resource:Q194081 }
Sestri Levante Ferdinando Lambruschini
action is_in
entity Sestri Levante
action find
entity Ferdinando Lambruschini
relation place of birth
['Ferdinando Lambruschini', 'place of birth', 'Sestri Levante']
ASK WHERE { resource:Ferdinando_Lambruschini property:place_of_birth resource:Sestri_Levante }
[]
common name
SYSTEM
YES
(Q3742618,P19,Q194081)
action is_in
entity Q194081
action find
entity Q3742618
relation P19
[ANSWER]
['Q3742618', 'P19', 'Q194081']
ASK WHERE { resource:Q3742618 property:P19 resource:Q194081 }
Yes
action is_in
entity Sestri Levante
action find
entity Ferdinando Lambruschini
relation place of birth
['Ferdinando Lambruschini', 'place of birth', 'Sestri Levante']
ASK WHERE { resource:Ferdinando_Lambruschini property:place_of_birth resource:Sestri_Levante }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3936084 Q38
P27
Q15617994
USER
Is Rino Di Fraia an inhabitant of Italy ?
(Q3936084,P27,Q38)
action is_in
entity Q38
action find
entity Q3936084
relation P27
['Q3936084', 'P27', 'Q38']
ASK WHERE { resource:Q3936084 property:P27 resource:Q38 }
Rino Di Fraia Italy
action is_in
entity Italy
action find
entity Rino Di Fraia
relation country of citizenship
['Rino Di Fraia', 'country of citizenship', 'Italy']
ASK WHERE { resource:Rino_Di_Fraia property:country_of_citizenship resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q3936084,P27,Q38)
action is_in
entity Q38
action find
entity Q3936084
relation P27
[ANSWER]
['Q3936084', 'P27', 'Q38']
ASK WHERE { resource:Q3936084 property:P27 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Rino Di Fraia
relation country of citizenship
['Rino Di Fraia', 'country of citizenship', 'Italy']
ASK WHERE { resource:Rino_Di_Fraia property:country_of_citizenship resource:Italy }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q142
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with around the same number of administrative territories as France ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q142
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?k ) WHERE { ?b rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 . ?b property:P530 ?c } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:Q142 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?k = ?m ) }
France
action approx
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 France
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 ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?k ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?c } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:France property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k = ?m ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q142 Q148 Q801
SYSTEM
France, People's Republic of China, Israel
Q801 Q805 Q142 Q145 Q148 Q17
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q142
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?k ) WHERE { ?b rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 . ?b property:P530 ?c } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:Q142 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?k = ?m ) }
Israel Yemen France United Kingdom People's Republic of China Japan
France People's Republic of China Israel
action approx
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 France
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 ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?k ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?c } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:France property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k = ?m ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q148
P530
Q15617994 Q15617994
USER
And what about People's Republic of China?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q148
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?g ) WHERE { ?m property:P530 ?c . ?m rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { resource:Q148 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?g = ?h ) }
People's Republic of China
action approx
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 People's Republic of China
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 ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?g ) WHERE { ?m property:diplomatic_relation ?c . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { resource:People's_Republic_of_China property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g = ?h ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q142 Q148 Q801
SYSTEM
France, People's Republic of China, Israel
Q801 Q805 Q668 Q142 Q145 Q148 Q403 Q43 Q17 Q79 Q1011
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q148
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?g ) WHERE { ?m property:P530 ?c . ?m rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { resource:Q148 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?g = ?h ) }
Israel Yemen India France United Kingdom People's Republic of China Serbia Turkey Japan Egypt Cape Verde
France People's Republic of China Israel
action approx
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 People's Republic of China
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 ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?g ) WHERE { ?m property:diplomatic_relation ?c . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { resource:People's_Republic_of_China property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g = ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q822
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with less number of administrative territories than Lebanon ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q822
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?m ) WHERE { ?l property:P530 ?n . ?l rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q822 property:P530 ?d } } . FILTER ( ?m < ?h ) }
Lebanon
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 Lebanon
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 ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?m ) WHERE { ?l property:diplomatic_relation ?n . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lebanon property:diplomatic_relation ?d } } . FILTER ( ?m < ?h ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q96
SYSTEM
Netherlands, Poland, Mexico
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 less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q822
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?m ) WHERE { ?l property:P530 ?n . ?l rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q822 property:P530 ?d } } . FILTER ( ?m < ?h ) }
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
Netherlands Poland Mexico
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 Lebanon
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 ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?m ) WHERE { ?l property:diplomatic_relation ?n . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lebanon property:diplomatic_relation ?d } } . FILTER ( ?m < ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q32
P530
Q15617994 Q15617994
USER
And how about Luxembourg?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q32
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?r ) WHERE { ?d rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 . ?d property:P530 ?c } GROUP BY ?d } . FILTER ( ?r < ?z ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Q32 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } }
Luxembourg
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 Luxembourg
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 ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?r ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:diplomatic_relation ?c } GROUP BY ?d } . FILTER ( ?r < ?z ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Luxembourg property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q96
SYSTEM
Netherlands, Poland, Mexico
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 less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q32
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?r ) WHERE { ?d rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 . ?d property:P530 ?c } GROUP BY ?d } . FILTER ( ?r < ?z ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Q32 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } }
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
Netherlands Poland Mexico
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 Luxembourg
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 ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?r ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:diplomatic_relation ?c } GROUP BY ?d } . FILTER ( ?r < ?z ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Luxembourg property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q55 Q36 Q96
P17
Q15617994
USER
Which administrative territories are Netherlands, Poland and Mexico situated in ?
(Q55,P17,c(Q15617994)) (Q36,P17,c(Q15617994)) (Q96,P17,c(Q15617994))
action union
action filter_type
action find
entity Q55
relation P17
type Q15617994
action filter_type
action find
entity Q36
relation P17
type Q15617994
action filter_type
action find
entity Q96
relation P17
type Q15617994
['Q55', 'P17', {'concept': 'Q15617994'}] ['Q36', 'P17', {'concept': 'Q15617994'}] ['Q96', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { resource:Q55 property:P17 ?d . ?d rdf:type ontology:Q15617994 } UNION { resource:Q36 property:P17 ?d . ?d rdf:type ontology:Q15617994 } }
Netherlands Poland Mexico
action union
action filter_type
action find
entity Netherlands
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Poland
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Mexico
relation country
type designation for an administrative territorial entity
['Netherlands', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Poland', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Mexico', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { resource:Netherlands property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Poland property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q55 Q36 Q96
SYSTEM
Netherlands, Poland, Mexico
Q29999 Q55 Q36 Q96
(Q55,P17,c(Q15617994)) (Q36,P17,c(Q15617994)) (Q96,P17,c(Q15617994))
action union
action filter_type
action find
entity Q55
relation P17
type Q15617994
action filter_type
action find
entity Q36
relation P17
type Q15617994
action filter_type
action find
entity Q96
relation P17
type Q15617994
[ANSWERS]
['Q55', 'P17', {'concept': 'Q15617994'}] ['Q36', 'P17', {'concept': 'Q15617994'}] ['Q96', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { resource:Q55 property:P17 ?d . ?d rdf:type ontology:Q15617994 } UNION { resource:Q36 property:P17 ?d . ?d rdf:type ontology:Q15617994 } }
Kingdom of the Netherlands Netherlands Poland Mexico
Netherlands Poland Mexico
action union
action filter_type
action find
entity Netherlands
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Poland
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Mexico
relation country
type designation for an administrative territorial entity
['Netherlands', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Poland', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Mexico', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { resource:Netherlands property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Poland property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q55
P47
Q15617994
USER
Which administrative territory shares border with that one ?
(Q55,P47,c(Q15617994))
action filter_type
action find
entity Q55
relation P47
type Q15617994
['Q55', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q55 property:P47 ?n . ?n rdf:type ontology:Q15617994 }
Netherlands
action filter_type
action find
entity Netherlands
relation shares border with
type designation for an administrative territorial entity
['Netherlands', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Netherlands property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q96
SYSTEM
Did you mean Mexico ?
Q55 Q36 Q96
(Q55,P47,c(Q15617994)) (Q36,P47,c(Q15617994)) (Q96,P47,c(Q15617994))
[ANSWER]
['Q55', 'P47', {'concept': 'Q15617994'}] ['Q36', 'P47', {'concept': 'Q15617994'}] ['Q96', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q55 property:P47 ?n . ?n rdf:type ontology:Q15617994 }
Netherlands Poland Mexico
Did you mean Mexico ?
Mexico
['Netherlands', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Poland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Mexico', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Netherlands property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Netherlands. Could you tell me the answer for that?
(Q55,P47,c(Q15617994))
Q55
['Q55', 'P47', {'concept': 'Q15617994'}]
['Netherlands', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
Q31
SYSTEM
Belgium
Q31
(Q55,P47,c(Q15617994))
action filter_type
action find
entity Q55
relation P47
type Q15617994
[ANSWER]
['Q55', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q55 property:P47 ?n . ?n rdf:type ontology:Q15617994 }
Belgium
Belgium
action filter_type
action find
entity Netherlands
relation shares border with
type designation for an administrative territorial entity
['Netherlands', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Netherlands property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q31
P1001
Q4164871 Q192350
USER
How many positions or ministries have jurisdiction over Belgium ?
(c(Q4164871),P1001,Q31) (c(Q192350),P1001,Q31)
action count
action union
action filter_type
action find_reverse
entity Q31
relation P1001
type Q4164871
action filter_type
action find_reverse
entity Q31
relation P1001
type Q192350
[{'concept': 'Q4164871'}, 'P1001', 'Q31'] [{'concept': 'Q192350'}, 'P1001', 'Q31']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?f ) { ( ontology:Q4164871 ) ( ontology:Q192350 ) } . ?h rdf:type ?f }
Belgium
action count
action union
action filter_type
action find_reverse
entity Belgium
relation applies to jurisdiction
type position
action filter_type
action find_reverse
entity Belgium
relation applies to jurisdiction
type ministry
[{'concept': 'position'}, 'applies to jurisdiction', 'Belgium'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Belgium']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?f ) { ( ontology:position ) ( ontology:ministry ) } . ?h rdf:type ?f }
[]
position ministry
SYSTEM
5
Q24038694 Q2382750 Q25907282 Q25712502 Q25907280
(c(Q4164871),P1001,Q31) (c(Q192350),P1001,Q31)
action count
action union
action filter_type
action find_reverse
entity Q31
relation P1001
type Q4164871
action filter_type
action find_reverse
entity Q31
relation P1001
type Q192350
[ANSWER]
[{'concept': 'Q4164871'}, 'P1001', 'Q31'] [{'concept': 'Q192350'}, 'P1001', 'Q31']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?f ) { ( ontology:Q4164871 ) ( ontology:Q192350 ) } . ?h rdf:type ?f }
State Secretary of Asylum, Migration, Social Integration and Poverty Reduction Ministry of Defence President of the Chamber of Representatives Minister of Social Affairs and Health Minister of the Civil Service
5
action count
action union
action filter_type
action find_reverse
entity Belgium
relation applies to jurisdiction
type position
action filter_type
action find_reverse
entity Belgium
relation applies to jurisdiction
type ministry
[{'concept': 'position'}, 'applies to jurisdiction', 'Belgium'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Belgium']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?f ) { ( ontology:position ) ( ontology:ministry ) } . ?h rdf:type ?f }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q35
P530
Q1048835 Q15617994
USER
How many political territories holds diplomatic relationship with less number of administrative territories than Denmark ?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?x ) WHERE { ?q property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Q35 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?x < ?m ) }
Denmark
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?x ) WHERE { ?q property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Denmark property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?x < ?m ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
8
Q1000 Q781 Q778 Q769 Q685 Q691 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?x ) WHERE { ?q property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Q35 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?x < ?m ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea New Zealand Jamaica
8
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?x ) WHERE { ?q property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Denmark property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?x < ?m ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31
P291
Q732577
USER
What was published in Belgium ?
(c(Q732577),P291,Q31)
action filter_type
action find_reverse
entity Q31
relation P291
type Q732577
[{'concept': 'Q732577'}, 'P291', 'Q31']
SELECT DISTINCT ?k WHERE { ?k property:P291 resource:Q31 . ?k rdf:type ontology:Q732577 }
Belgium
action filter_type
action find_reverse
entity Belgium
relation place of publication
type publication
[{'concept': 'publication'}, 'place of publication', 'Belgium']
SELECT DISTINCT ?k WHERE { ?k property:place_of_publication resource:Belgium . ?k rdf:type ontology:publication }
[]
publication
Q1869011
SYSTEM
Res Publica
Q1869011
(c(Q732577),P291,Q31)
action filter_type
action find_reverse
entity Q31
relation P291
type Q732577
[ANSWER]
[{'concept': 'Q732577'}, 'P291', 'Q31']
SELECT DISTINCT ?k WHERE { ?k property:P291 resource:Q31 . ?k rdf:type ontology:Q732577 }
Res Publica
Res Publica
action filter_type
action find_reverse
entity Belgium
relation place of publication
type publication
[{'concept': 'publication'}, 'place of publication', 'Belgium']
SELECT DISTINCT ?k WHERE { ?k property:place_of_publication resource:Belgium . ?k rdf:type ontology:publication }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31
P710
Q820655
USER
Which statute has Belgium as its participant ?
(c(Q820655),P710,Q31)
action filter_type
action find_reverse
entity Q31
relation P710
type Q820655
[{'concept': 'Q820655'}, 'P710', 'Q31']
SELECT DISTINCT ?y WHERE { ?y property:P710 resource:Q31 . ?y rdf:type ontology:Q820655 }
Belgium
action filter_type
action find_reverse
entity Belgium
relation participant
type statute
[{'concept': 'statute'}, 'participant', 'Belgium']
SELECT DISTINCT ?y WHERE { ?y property:participant resource:Belgium . ?y rdf:type ontology:statute }
[]
statute
Q2307326
SYSTEM
Treaty of Rome
Q2307326
(c(Q820655),P710,Q31)
action filter_type
action find_reverse
entity Q31
relation P710
type Q820655
[ANSWER]
[{'concept': 'Q820655'}, 'P710', 'Q31']
SELECT DISTINCT ?y WHERE { ?y property:P710 resource:Q31 . ?y rdf:type ontology:Q820655 }
Treaty of Rome
Treaty of Rome
action filter_type
action find_reverse
entity Belgium
relation participant
type statute
[{'concept': 'statute'}, 'participant', 'Belgium']
SELECT DISTINCT ?y WHERE { ?y property:participant resource:Belgium . ?y rdf:type ontology:statute }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31
P159
Q4830453
USER
Which business enterprises have the principal seat at Belgium ?
(c(Q4830453),P159,Q31)
action filter_type
action find_reverse
entity Q31
relation P159
type Q4830453
[{'concept': 'Q4830453'}, 'P159', 'Q31']
SELECT DISTINCT ?m WHERE { ?m property:P159 resource:Q31 . ?m rdf:type ontology:Q4830453 }
Belgium
action filter_type
action find_reverse
entity Belgium
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Belgium']
SELECT DISTINCT ?m WHERE { ?m property:headquarters_location resource:Belgium . ?m rdf:type ontology:business_enterprise }
[]
business enterprise
Q668620 Q925281
SYSTEM
Belga Rise, Delecroix
Q668620 Q925281
(c(Q4830453),P159,Q31)
action filter_type
action find_reverse
entity Q31
relation P159
type Q4830453
[ANSWERS]
[{'concept': 'Q4830453'}, 'P159', 'Q31']
SELECT DISTINCT ?m WHERE { ?m property:P159 resource:Q31 . ?m rdf:type ontology:Q4830453 }
Belga Rise Delecroix
Belga Rise Delecroix
action filter_type
action find_reverse
entity Belgium
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Belgium']
SELECT DISTINCT ?m WHERE { ?m property:headquarters_location resource:Belgium . ?m rdf:type ontology:business_enterprise }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q668620 Q925281
P452
Q268592
USER
Which industries do those business enterprises belong to ?
(Q668620,P452,c(Q268592)) (Q925281,P452,c(Q268592))
action filter_type
action find
entity prev_answer
relation P452
type Q268592
['Q668620', 'P452', {'concept': 'Q268592'}] ['Q925281', 'P452', {'concept': 'Q268592'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q268592 . ?j property:P452 ?x . VALUES ( ?j ) { ( resource:Q668620 ) ( resource:Q925281 ) } }
Belga Rise Delecroix
action filter_type
action find
entity prev_answer
relation industry
type economic branch
['Belga Rise', 'industry', {'concept': 'economic branch'}] ['Delecroix', 'industry', {'concept': 'economic branch'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:economic_branch . ?j property:industry ?x . VALUES ( ?j ) { ( resource:Belga_Rise ) ( resource:Delecroix ) } }
[]
economic branch
Q190117 Q190117
SYSTEM
automotive industry
Q190117 Q190117
(Q668620,P452,c(Q268592)) (Q925281,P452,c(Q268592))
action filter_type
action find
entity prev_answer
relation P452
type Q268592
[ANSWER]
['Q668620', 'P452', {'concept': 'Q268592'}] ['Q925281', 'P452', {'concept': 'Q268592'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q268592 . ?j property:P452 ?x . VALUES ( ?j ) { ( resource:Q668620 ) ( resource:Q925281 ) } }
automotive industry automotive industry
automotive industry automotive industry
action filter_type
action find
entity prev_answer
relation industry
type economic branch
['Belga Rise', 'industry', {'concept': 'economic branch'}] ['Delecroix', 'industry', {'concept': 'economic branch'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:economic_branch . ?j property:industry ?x . VALUES ( ?j ) { ( resource:Belga_Rise ) ( resource:Delecroix ) } }
[]