Simple Question (Direct)
Simple Question
Q2279359
P106
Q12737077
USER
What is the job of Shirley-Anne Somerville ?
(Q2279359,P106,c(Q12737077))
action filter_type
action find
entity Q2279359
relation P106
type Q12737077
['Q2279359', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q2279359 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Shirley-Anne Somerville
action filter_type
action find
entity Shirley-Anne Somerville
relation occupation
type occupation
['Shirley-Anne Somerville', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Shirley-Anne_Somerville property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q2279359,P106,c(Q12737077))
action filter_type
action find
entity Q2279359
relation P106
type Q12737077
The job of Shirley-Anne Somerville is a [ANSWER]
['Q2279359', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q2279359 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
politician
The job of Shirley-Anne Somerville is a politician
politician
action filter_type
action find
entity Shirley-Anne Somerville
relation occupation
type occupation
['Shirley-Anne Somerville', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Shirley-Anne_Somerville property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P39
Q502895
USER
Who was responsible for occupying the position of that occupation ?
(c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P39 resource:Q82955 }
politician
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:position_held resource:politician }
[]
common name
Q26215129
SYSTEM
Morteza Azari
Q26215129
(c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[ANSWER] was responsible for occupying the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P39 resource:Q82955 }
Morteza Azari
Morteza Azari was responsible for occupying the position of that occupation
Morteza Azari
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:position_held resource:politician }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q2342494
USER
How many collectables did around 3 people do the dubbing for ?
(c(Q2342494),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 3
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?s ) WHERE { ?a property:P725 ?x . ?a rdf:type ontology:Q2342494 . ?x rdf:type ontology:Q502895 } GROUP BY ?a } . FILTER ( ?s = 3 ) }
action count
action approx
action find_tuple_counts
relation voice actor
type collectable
type common name
value 3
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?s ) WHERE { ?a property:voice_actor ?x . ?a rdf:type ontology:collectable . ?x rdf:type ontology:common_name } GROUP BY ?a } . FILTER ( ?s = 3 ) }
[]
common name collectable
SYSTEM
6
Q50035 Q483263 Q482870 Q1204015 Q485958 Q5647726
(c(Q2342494),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 3
[ANSWER]
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?s ) WHERE { ?a property:P725 ?x . ?a rdf:type ontology:Q2342494 . ?x rdf:type ontology:Q502895 } GROUP BY ?a } . FILTER ( ?s = 3 ) }
Nyaruko: Crawling with Love Baka and Test Boku wa Tomodachi ga Sukunai Ōkami Kakushi Ro-Kyu-Bu! Handy Manny's Motorcycle Adventure
6
action count
action approx
action find_tuple_counts
relation voice actor
type collectable
type common name
value 3
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?s ) WHERE { ?a property:voice_actor ?x . ?a rdf:type ontology:collectable . ?x rdf:type ontology:common_name } GROUP BY ?a } . FILTER ( ?s = 3 ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P425
Q3769299
USER
Which human behaviour has that one as the associated field of occupation ?
action filter_type
action find
entity Q82955
relation P425
type Q3769299
SELECT DISTINCT ?n WHERE { resource:Q82955 property:P425 ?n . ?n rdf:type ontology:Q3769299 }
politician
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
SELECT DISTINCT ?n WHERE { resource:politician property:field_of_this_occupation ?n . ?n rdf:type ontology:human_behaviour }
[]
human behaviour
Q7163
SYSTEM
politics
Q7163
action filter_type
action find
entity Q82955
relation P425
type Q3769299
[ANSWER] has that one as the associated field of occupation
SELECT DISTINCT ?n WHERE { resource:Q82955 property:P425 ?n . ?n rdf:type ontology:Q3769299 }
politics
Politics has that one as the associated field of occupation
politics
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
SELECT DISTINCT ?n WHERE { resource:politician property:field_of_this_occupation ?n . ?n rdf:type ontology:human_behaviour }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4783975 Q26215129
P27 P17
Q15617994
USER
Which administrative territories do Morteza Azari belong to or are Yabus River situated in ?
OR((Q26215129,P27,c(Q15617994)), (Q4783975,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26215129
relation P27
action find
entity Q4783975
relation P17
type Q15617994
{'OR': [['Q26215129', 'P27', {'concept': 'Q15617994'}], ['Q4783975', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q26215129 property:P27 ?c } UNION { resource:Q4783975 property:P17 ?c } } . ?c rdf:type ontology:Q15617994 }
Yabus River Morteza Azari
action filter_type
action union
action find
entity Morteza Azari
relation country of citizenship
action find
entity Yabus River
relation country
type designation for an administrative territorial entity
{'OR': [['Morteza Azari', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Yabus River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Morteza_Azari property:country_of_citizenship ?c } UNION { resource:Yabus_River property:country ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q115 Q958 Q1049 Q794
SYSTEM
Ethiopia, South Sudan, Sudan, Iran
Q115 Q958 Q1049 Q794
OR((Q26215129,P27,c(Q15617994)), (Q4783975,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26215129
relation P27
action find
entity Q4783975
relation P17
type Q15617994
Morteza Azari belong to [ANSWERS]
{'OR': [['Q26215129', 'P27', {'concept': 'Q15617994'}], ['Q4783975', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q26215129 property:P27 ?c } UNION { resource:Q4783975 property:P17 ?c } } . ?c rdf:type ontology:Q15617994 }
Ethiopia South Sudan Sudan Iran
Morteza Azari belong to Ethiopia, South Sudan, Sudan and Iran
Ethiopia South Sudan Sudan Iran
action filter_type
action union
action find
entity Morteza Azari
relation country of citizenship
action find
entity Yabus River
relation country
type designation for an administrative territorial entity
{'OR': [['Morteza Azari', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Yabus River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Morteza_Azari property:country_of_citizenship ?c } UNION { resource:Yabus_River property:country ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q794
P47
Q15617994
USER
Which administrative territories share border with that one ?
(c(Q15617994),P47,Q794)
action filter_type
action find
entity Q794
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q794']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q794 property:P47 ?o }
Iran
action filter_type
action find
entity Iran
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Iran']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Iran property:shares_border_with ?o }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1049
SYSTEM
Did you mean Sudan ?
Q115 Q958 Q1049 Q794
(c(Q15617994),P47,Q115) (c(Q15617994),P47,Q958) (c(Q15617994),P47,Q1049) (c(Q15617994),P47,Q794)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q115'] [{'concept': 'Q15617994'}, 'P47', 'Q958'] [{'concept': 'Q15617994'}, 'P47', 'Q1049'] [{'concept': 'Q15617994'}, 'P47', 'Q794']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q794 property:P47 ?o }
Ethiopia South Sudan Sudan Iran
Did you mean Sudan ?
Sudan
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Ethiopia'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'South Sudan'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Sudan'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Iran']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Iran property:shares_border_with ?o }
[]
Simple Question (Coreferenced)
USER
No, I meant Iran. Could you tell me the answer for that?
(c(Q15617994),P47,Q794)
Q794
[{'concept': 'Q15617994'}, 'P47', 'Q794']
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Iran']
[]
Q43 Q889 Q796
SYSTEM
Turkey, Afghanistan, Iraq
Q227 Q889 Q843 Q796 Q874 Q399 Q43
(c(Q15617994),P47,Q794)
action filter_type
action find
entity Q794
relation P47
type Q15617994
[ANSWERS] share border with that one
[{'concept': 'Q15617994'}, 'P47', 'Q794']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q794 property:P47 ?o }
Azerbaijan Afghanistan Pakistan Iraq Turkmenistan Armenia Turkey
Turkey, Afghanistan and Iraq share border with that one
Turkey Afghanistan Iraq
action filter_type
action find
entity Iran
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Iran']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Iran property:shares_border_with ?o }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1000
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relations with less number of administrative territories than Gabon ?
(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 Q1000
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?m ) WHERE { ?z property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?z } . FILTER ( ?m < ?h ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { resource:Q1000 property:P530 ?q . ?q rdf:type ontology:Q1048835 } } }
Gabon
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 Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?m ) WHERE { ?z property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?z } . FILTER ( ?m < ?h ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { resource:Gabon property:diplomatic_relation ?q . ?q rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q685 Q691
(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 Q1000
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?m ) WHERE { ?z property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?z } . FILTER ( ?m < ?h ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { resource:Q1000 property:P530 ?q . ?q rdf:type ontology:Q1048835 } } }
Solomon Islands Papua New Guinea
2
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 Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?m ) WHERE { ?z property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?z } . FILTER ( ?m < ?h ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { resource:Gabon property:diplomatic_relation ?q . ?q rdf:type ontology:political_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q183
P530
Q1048835 Q15617994
USER
And also tell me about Germany?
(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 Q183
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?r ) WHERE { ?w property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Q183 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?r < ?u ) }
Germany
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 Germany
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?r ) WHERE { ?w property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Germany property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r < ?u ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
12
Q1000 Q40 Q781 Q778 Q408 Q769 Q685 Q35 Q691 Q16 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 Q183
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?r ) WHERE { ?w property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Q183 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?r < ?u ) }
Gabon Austria Antigua and Barbuda The Bahamas Australia Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
12
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 Germany
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?r ) WHERE { ?w property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Germany property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r < ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1030
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with less number of administrative territories than Namibia ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q1030
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?c ) WHERE { ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 . ?v property:P530 ?x } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { ?r property:P530 resource:Q1030 . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?c < ?u ) }
Namibia
action less
action find_reverse_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_reverse
entity Namibia
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 ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?c ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:diplomatic_relation ?x } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { ?r property:diplomatic_relation resource:Namibia . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c < ?u ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q218 Q20 Q948
SYSTEM
Romania, Norway, Tunisia
Q702 Q804 Q783 Q784 Q265 Q712 Q710 Q837 Q657 Q792 Q790 Q986 Q242 Q244 Q811 Q929 Q29999 Q854 Q819 Q424 Q730 Q1013 Q232 Q238 Q20 Q1045 Q1041 Q921 Q1027 Q1020 Q842 Q1028 Q786 Q1036 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q117 Q754 Q218 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q970 Q683 Q34020 Q686 Q836 Q574 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q1030
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with less number of administrative territories than Namibia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?c ) WHERE { ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 . ?v property:P530 ?x } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { ?r property:P530 resource:Q1030 . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?c < ?u ) }
Federated States of Micronesia Panama Honduras Dominica Uzbekistan Fiji Kiribati Nepal Chad El Salvador Haiti Eritrea Belize Barbados Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Kazakhstan San Marino Norway Somalia Senegal Brunei Mauritius Malawi Oman Morocco Dominican Republic Uganda Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Ghana Trinidad and Tobago Romania Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Comoros Samoa Niue Vanuatu Myanmar East Timor Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia
Romania, Norway and Tunisia have diplomatic relationships with less number of administrative territories than Namibia
Romania Norway Tunisia
action less
action find_reverse_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_reverse
entity Namibia
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 ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?c ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:diplomatic_relation ?x } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { ?r property:diplomatic_relation resource:Namibia . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c < ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q27
P530
Q15617994 Q15617994
USER
And how about Ireland?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q27
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:P530 resource:Q27 . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?c < ?i ) . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?c ) WHERE { ?v property:P530 ?o . ?v rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?o } }
Ireland
action less
action find_reverse_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_reverse
entity Ireland
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 ?o WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:diplomatic_relation resource:Ireland . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c < ?i ) . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?c ) WHERE { ?v property:diplomatic_relation ?o . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q45 Q792 Q790 Q954 Q889 Q884 Q958 Q881 Q986 Q242 Q244 Q811 Q33 Q32 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q221 Q96 Q229 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q27
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:P530 resource:Q27 . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?c < ?i ) . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?c ) WHERE { ?v property:P530 ?o . ?v rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?o } }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad Portugal El Salvador Haiti Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Belize Barbados Nicaragua Finland Luxembourg Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Togo Tonga Spain New Caledonia Thailand
Georgia Netherlands Poland
action less
action find_reverse_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_reverse
entity Ireland
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 ?o WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:diplomatic_relation resource:Ireland . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c < ?i ) . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?c ) WHERE { ?v property:diplomatic_relation ?o . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18388291 Q36
P17
Q15617994
USER
Which administrative territories are Poland or Philtech Institute of Arts and Technology Inc. a part of ?
OR((Q36,P17,c(Q15617994)), (Q18388291,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q36
relation P17
action find
entity Q18388291
relation P17
type Q15617994
{'OR': [['Q36', 'P17', {'concept': 'Q15617994'}], ['Q18388291', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q36 property:P17 ?l } UNION { resource:Q18388291 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
Philtech Institute of Arts and Technology Inc. Poland
action filter_type
action union
action find
entity Poland
relation country
action find
entity Philtech Institute of Arts and Technology Inc.
relation country
type designation for an administrative territorial entity
{'OR': [['Poland', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Philtech Institute of Arts and Technology Inc.', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Poland property:country ?l } UNION { resource:Philtech_Institute_of_Arts_and_Technology_Inc. property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q928 Q36
SYSTEM
Philippines, Poland
Q928 Q36
OR((Q36,P17,c(Q15617994)), (Q18388291,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q36
relation P17
action find
entity Q18388291
relation P17
type Q15617994
[ANSWERS] are Poland or Philtech Institute of Arts and Technology Inc. a part of
{'OR': [['Q36', 'P17', {'concept': 'Q15617994'}], ['Q18388291', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q36 property:P17 ?l } UNION { resource:Q18388291 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
Philippines Poland
Philippines and Poland are Poland or Philtech Institute of Arts and Technology Inc. a part of
Philippines Poland
action filter_type
action union
action find
entity Poland
relation country
action find
entity Philtech Institute of Arts and Technology Inc.
relation country
type designation for an administrative territorial entity
{'OR': [['Poland', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Philtech Institute of Arts and Technology Inc.', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Poland property:country ?l } UNION { resource:Philtech_Institute_of_Arts_and_Technology_Inc. property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with atmost 2 administrative territories or political territories ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { FILTER ( ?x <= 2 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) ?e WHERE { VALUES ( ?d ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?h rdf:type ?d } GROUP BY ?e } }
action count
action atmost
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { FILTER ( ?x <= 2 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) ?e WHERE { VALUES ( ?d ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?h rdf:type ?d } GROUP BY ?e } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
58
Q702 Q804 Q784 Q265 Q712 Q710 Q837 Q398 Q657 Q792 Q790 Q986 Q242 Q244 Q811 Q929 Q29999 Q854 Q819 Q424 Q730 Q1013 Q236 Q232 Q238 Q1045 Q921 Q1027 Q1020 Q842 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q754 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q858 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { FILTER ( ?x <= 2 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) ?e WHERE { VALUES ( ?d ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?h rdf:type ?d } GROUP BY ?e } }
Federated States of Micronesia Panama Dominica Uzbekistan Fiji Kiribati Nepal Bahrain Chad El Salvador Haiti Eritrea Belize Barbados Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Montenegro Kazakhstan San Marino Somalia Brunei Mauritius Malawi Oman Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Syria Tunisia Kuwait Madagascar Togo Tonga New Caledonia
58
action count
action atmost
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { FILTER ( ?x <= 2 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) ?e WHERE { VALUES ( ?d ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?h rdf:type ?d } GROUP BY ?e } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2083219 Q1049
P47 P27
Q15617994
USER
Which administrative territories are adjacent to Sudan or are Trudi van den Berg a civilian of ?
OR((Q1049,P47,c(Q15617994)), (Q2083219,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1049
relation P47
action find
entity Q2083219
relation P27
type Q15617994
{'OR': [['Q1049', 'P47', {'concept': 'Q15617994'}], ['Q2083219', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1049 property:P47 ?w } UNION { resource:Q2083219 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Trudi van den Berg Sudan
action filter_type
action union
action find
entity Sudan
relation shares border with
action find
entity Trudi van den Berg
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Sudan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Trudi van den Berg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Sudan property:shares_border_with ?w } UNION { resource:Trudi_van_den_Berg property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29999 Q929 Q1036 Q657 Q115 Q79 Q974 Q114 Q958 Q1016
SYSTEM
Some of them are Kingdom of the Netherlands, Central African Republic, Uganda, Chad, Ethiopia, Egypt, Democratic Republic of the Congo, Kenya, South Sudan, Libya
Q986 Q1036 Q974 Q1016 Q29999 Q657 Q115 Q114 Q79 Q929 Q958
OR((Q1049,P47,c(Q15617994)), (Q2083219,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1049
relation P47
action find
entity Q2083219
relation P27
type Q15617994
[ANSWERS] are adjacent to Sudan or are Trudi van den Berg a civilian of
{'OR': [['Q1049', 'P47', {'concept': 'Q15617994'}], ['Q2083219', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1049 property:P47 ?w } UNION { resource:Q2083219 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Eritrea Uganda Democratic Republic of the Congo Libya Kingdom of the Netherlands Chad Ethiopia Kenya Egypt Central African Republic South Sudan
Kingdom of the Netherlands, Central African Republic, Uganda, Chad, Ethiopia, Egypt, Democratic Republic of the Congo, Kenya, South Sudan and Libya are adjacent to Sudan or are Trudi van den Berg a civilian of
Kingdom of the Netherlands Central African Republic Uganda Chad Ethiopia Egypt Democratic Republic of the Congo Kenya South Sudan Libya
action filter_type
action union
action find
entity Sudan
relation shares border with
action find
entity Trudi van den Berg
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Sudan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Trudi van den Berg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Sudan property:shares_border_with ?w } UNION { resource:Trudi_van_den_Berg property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2083219
P21
Q290
USER
What is the sex of Trudi van den Berg ?
(Q2083219,P21,c(Q290))
action filter_type
action find
entity Q2083219
relation P21
type Q290
['Q2083219', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q2083219 property:P21 ?o }
Trudi van den Berg
action filter_type
action find
entity Trudi van den Berg
relation gender
type sex
['Trudi van den Berg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Trudi_van_den_Berg property:gender ?o }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q2083219,P21,c(Q290))
action filter_type
action find
entity Q2083219
relation P21
type Q290
The sex of Trudi van den Berg is the [ANSWER]
['Q2083219', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q2083219 property:P21 ?o }
female
The sex of Trudi van den Berg is the female
female
action filter_type
action find
entity Trudi van den Berg
relation gender
type sex
['Trudi van den Berg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Trudi_van_den_Berg property:gender ?o }
[]