Simple Question (Direct)
Simple Question
Q7180378
P734
Q101352
USER
Which family name is associated with Pham Quynh ?
(Q7180378,P734,c(Q101352))
action filter_type
action find
entity Q7180378
relation P734
type Q101352
['Q7180378', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?h WHERE { resource:Q7180378 property:P734 ?h . ?h rdf:type ontology:Q101352 }
Pham Quynh
action filter_type
action find
entity Pham Quynh
relation family name
type family name
['Pham Quynh', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?h WHERE { resource:Pham_Quynh property:family_name ?h . ?h rdf:type ontology:family_name }
[]
family name
Q11134579
SYSTEM
Fan
Q11134579
(Q7180378,P734,c(Q101352))
action filter_type
action find
entity Q7180378
relation P734
type Q101352
[ANSWER] is associated with Pham Quynh
['Q7180378', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?h WHERE { resource:Q7180378 property:P734 ?h . ?h rdf:type ontology:Q101352 }
Fan
Fan is associated with Pham Quynh
Fan
action filter_type
action find
entity Pham Quynh
relation family name
type family name
['Pham Quynh', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?h WHERE { resource:Pham_Quynh property:family_name ?h . ?h rdf:type ontology:family_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7180378
P27
Q15617994
USER
Which administrative territory is the native country of Pham Quynh ?
(Q7180378,P27,c(Q15617994))
action filter_type
action find
entity Q7180378
relation P27
type Q15617994
['Q7180378', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q7180378 property:P27 ?w }
Pham Quynh
action filter_type
action find
entity Pham Quynh
relation country of citizenship
type designation for an administrative territorial entity
['Pham Quynh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Pham_Quynh property:country_of_citizenship ?w }
[]
designation for an administrative territorial entity
Q881
SYSTEM
Vietnam
Q881
(Q7180378,P27,c(Q15617994))
action filter_type
action find
entity Q7180378
relation P27
type Q15617994
[ANSWER] is the native country of Pham Quynh
['Q7180378', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q7180378 property:P27 ?w }
Vietnam
Vietnam is the native country of Pham Quynh
Vietnam
action filter_type
action find
entity Pham Quynh
relation country of citizenship
type designation for an administrative territorial entity
['Pham Quynh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Pham_Quynh property:country_of_citizenship ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7180378
P21
Q290
USER
Which sex does Pham Quynh belong to ?
(Q7180378,P21,c(Q290))
action filter_type
action find
entity Q7180378
relation P21
type Q290
['Q7180378', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q7180378 property:P21 ?u . ?u rdf:type ontology:Q290 }
Pham Quynh
action filter_type
action find
entity Pham Quynh
relation gender
type sex
['Pham Quynh', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Pham_Quynh property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7180378,P21,c(Q290))
action filter_type
action find
entity Q7180378
relation P21
type Q290
Pham Quynh belongs to [ANSWER]
['Q7180378', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q7180378 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
Pham Quynh belongs to male
male
action filter_type
action find
entity Pham Quynh
relation gender
type sex
['Pham Quynh', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Pham_Quynh property:gender ?u . ?u rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18631865
Q290
USER
And how about Jay Fisette?
(Q18631865,P21,c(Q290))
action filter_type
action find
entity Q18631865
relation P21
type Q290
['Q18631865', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q18631865 property:P21 ?x . ?x rdf:type ontology:Q290 }
Jay Fisette
action filter_type
action find
entity Jay Fisette
relation gender
type sex
['Jay Fisette', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Jay_Fisette property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18631865,P21,c(Q290))
action filter_type
action find
entity Q18631865
relation P21
type Q290
[ANSWER]
['Q18631865', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q18631865 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Jay Fisette
relation gender
type sex
['Jay Fisette', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Jay_Fisette property:gender ?x . ?x rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q1641374
P21
Q502895
USER
Does James Munro have the gender as that sex ?
(Q1641374,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q1641374
relation P21
['Q1641374', 'P21', 'Q6581097']
ASK WHERE { resource:Q1641374 property:P21 resource:Q6581097 }
male James Munro
action is_in
entity male
action find
entity James Munro
relation gender
['James Munro', 'gender', 'male']
ASK WHERE { resource:James_Munro property:gender resource:male }
[]
common name
SYSTEM
YES
(Q1641374,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q1641374
relation P21
[ANSWER]
['Q1641374', 'P21', 'Q6581097']
ASK WHERE { resource:Q1641374 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity James Munro
relation gender
['James Munro', 'gender', 'male']
ASK WHERE { resource:James_Munro property:gender resource:male }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q4952002 Q7180378
P106
Q12737077
USER
Which occupations are the professions of Pham Quynh and Annika Hagström ?
AND((Q7180378,P106,c(Q12737077)), (Q4952002,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q7180378
relation P106
action find
entity Q4952002
relation P106
type Q12737077
{'AND': [['Q7180378', 'P106', {'concept': 'Q12737077'}], ['Q4952002', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?z WHERE { resource:Q7180378 property:P106 ?z . resource:Q4952002 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Annika Hagström Pham Quynh
action filter_type
action intersection
action find
entity Pham Quynh
relation occupation
action find
entity Annika Hagström
relation occupation
type occupation
{'AND': [['Pham Quynh', 'occupation', {'concept': 'occupation'}], ['Annika Hagström', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?z WHERE { resource:Pham_Quynh property:occupation ?z . resource:Annika_Hagström property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q1930187 Q36180
SYSTEM
journalist, writer
Q1930187 Q36180
AND((Q7180378,P106,c(Q12737077)), (Q4952002,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q7180378
relation P106
action find
entity Q4952002
relation P106
type Q12737077
The [ANSWERS] are the professions of Pham Quynh and Annika Hagström
{'AND': [['Q7180378', 'P106', {'concept': 'Q12737077'}], ['Q4952002', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?z WHERE { resource:Q7180378 property:P106 ?z . resource:Q4952002 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
journalist writer
The journalist and writer are the professions of Pham Quynh and Annika Hagström
journalist writer
action filter_type
action intersection
action find
entity Pham Quynh
relation occupation
action find
entity Annika Hagström
relation occupation
type occupation
{'AND': [['Pham Quynh', 'occupation', {'concept': 'occupation'}], ['Annika Hagström', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?z WHERE { resource:Pham_Quynh property:occupation ?z . resource:Annika_Hagström property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q230 Q881
P530
Q1048835
USER
Which political territories have a diplomatic relationship with Vietnam or Georgia ?
OR((Q881,P530,c(Q1048835)), (Q230,P530,c(Q1048835)))
action filter_type
action union
action find
entity Q881
relation P530
action find
entity Q230
relation P530
type Q1048835
{'OR': [['Q881', 'P530', {'concept': 'Q1048835'}], ['Q230', 'P530', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?t ) { ( resource:Q881 ) ( resource:Q230 ) } . ?t property:P530 ?n } . ?n rdf:type ontology:Q1048835 }
Georgia Vietnam
action filter_type
action union
action find
entity Vietnam
relation diplomatic relation
action find
entity Georgia
relation diplomatic relation
type political territorial entity
{'OR': [['Vietnam', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?t ) { ( resource:Vietnam ) ( resource:Georgia ) } . ?t property:diplomatic_relation ?n } . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q766 Q183 Q1000 Q778 Q35 Q769 Q16 Q40 Q781 Q664
SYSTEM
Some of them are Jamaica, Germany, Gabon, The Bahamas, Denmark, Grenada, Canada, Austria, Antigua and Barbuda, New Zealand
Q1000 Q40 Q781 Q183 Q778 Q408 Q769 Q35 Q16 Q664 Q766
OR((Q881,P530,c(Q1048835)), (Q230,P530,c(Q1048835)))
action filter_type
action union
action find
entity Q881
relation P530
action find
entity Q230
relation P530
type Q1048835
[ANSWERS] have a diplomatic relationship with Vietnam or Georgia
{'OR': [['Q881', 'P530', {'concept': 'Q1048835'}], ['Q230', 'P530', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?t ) { ( resource:Q881 ) ( resource:Q230 ) } . ?t property:P530 ?n } . ?n rdf:type ontology:Q1048835 }
Gabon Austria Antigua and Barbuda Germany The Bahamas Australia Grenada Denmark Canada New Zealand Jamaica
Jamaica, Germany, Gabon, The Bahamas, Denmark, Grenada, Canada, Austria, Antigua and Barbuda and New Zealand have a diplomatic relationship with Vietnam or Georgia
Jamaica Germany Gabon The Bahamas Denmark Grenada Canada Austria Antigua and Barbuda New Zealand
action filter_type
action union
action find
entity Vietnam
relation diplomatic relation
action find
entity Georgia
relation diplomatic relation
type political territorial entity
{'OR': [['Vietnam', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?t ) { ( resource:Vietnam ) ( resource:Georgia ) } . ?t property:diplomatic_relation ?n } . ?n rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q983467
P706
Q1267889 Q2221906 Q1048835
USER
How many political territories are located in greater number of waterways or geographic locations than Montuïri ?
(c(Q1048835),P706,c(Q1267889)|c(Q2221906))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q1048835
type Q1267889
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
action count
action filter_multi_types
action find
entity Q983467
relation P706
type Q1267889
type Q2221906
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q1267889'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?l WHERE { { ?a rdf:type ontology:Q2221906 . ?l rdf:type ontology:Q1048835 . ?l property:P706 ?a } UNION { ?l property:P706 ?a . ?l rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q1267889 } } GROUP BY ?l } . FILTER ( ?z > ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { resource:Q983467 property:P706 ?k . { ?k rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1267889 ) ( ontology:Q2221906 ) } } } } }
Montuïri
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type waterway
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action count
action filter_multi_types
action find
entity Montuïri
relation located on terrain feature
type waterway
type geographic location
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'waterway'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?l WHERE { { ?a rdf:type ontology:geographic_location . ?l rdf:type ontology:political_territorial_entity . ?l property:located_on_terrain_feature ?a } UNION { ?l property:located_on_terrain_feature ?a . ?l rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:waterway } } GROUP BY ?l } . FILTER ( ?z > ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { resource:Montuïri property:located_on_terrain_feature ?k . { ?k rdf:type ?h . VALUES ( ?h ) { ( ontology:waterway ) ( ontology:geographic_location ) } } } } }
[]
waterway geographic location political territorial entity
SYSTEM
17
Q13353 Q6139 Q785 Q904566 Q42314 Q898856 Q168856 Q5785 Q3405693 Q25228 Q202023 Q170213 Q766 Q18221 Q778 Q5700 Q25305
(c(Q1048835),P706,c(Q1267889)|c(Q2221906))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q1048835
type Q1267889
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
action count
action filter_multi_types
action find
entity Q983467
relation P706
type Q1267889
type Q2221906
[ANSWER]
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q1267889'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?l WHERE { { ?a rdf:type ontology:Q2221906 . ?l rdf:type ontology:Q1048835 . ?l property:P706 ?a } UNION { ?l property:P706 ?a . ?l rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q1267889 } } GROUP BY ?l } . FILTER ( ?z > ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { resource:Q983467 property:P706 ?k . { ?k rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1267889 ) ( ontology:Q2221906 ) } } } } }
Montserrat Havelland Jersey Brecqhou Channel Islands Jethou Chernivtsi Oblast Cayman Islands Sark Anguilla Herm Zakarpattia Oblast Jamaica Turks and Caicos Islands The Bahamas Lapland British Virgin Islands
17
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type waterway
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action count
action filter_multi_types
action find
entity Montuïri
relation located on terrain feature
type waterway
type geographic location
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'waterway'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?l WHERE { { ?a rdf:type ontology:geographic_location . ?l rdf:type ontology:political_territorial_entity . ?l property:located_on_terrain_feature ?a } UNION { ?l property:located_on_terrain_feature ?a . ?l rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:waterway } } GROUP BY ?l } . FILTER ( ?z > ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { resource:Montuïri property:located_on_terrain_feature ?k . { ?k rdf:type ?h . VALUES ( ?h ) { ( ontology:waterway ) ( ontology:geographic_location ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q983635
P706
Q1267889 Q2221906 Q1048835
USER
And what about Sant Josep de sa Talaia?
(c(Q1048835),P706,c(Q1267889)|c(Q2221906))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q1048835
type Q1267889
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
action count
action filter_multi_types
action find
entity Q983635
relation P706
type Q1267889
type Q2221906
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q1267889'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?v WHERE { VALUES ( ?t ) { ( ontology:Q1267889 ) ( ontology:Q2221906 ) } . ?u rdf:type ?t } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { resource:Q983635 property:P706 ?o . { { ?o rdf:type ontology:Q1267889 } UNION { ?o rdf:type ontology:Q2221906 } } } } . FILTER ( ?a > ?e ) }
Sant Josep de sa Talaia
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type waterway
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action count
action filter_multi_types
action find
entity Sant Josep de sa Talaia
relation located on terrain feature
type waterway
type geographic location
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'waterway'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?v WHERE { VALUES ( ?t ) { ( ontology:waterway ) ( ontology:geographic_location ) } . ?u rdf:type ?t } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { resource:Sant_Josep_de_sa_Talaia property:located_on_terrain_feature ?o . { { ?o rdf:type ontology:waterway } UNION { ?o rdf:type ontology:geographic_location } } } } . FILTER ( ?a > ?e ) }
[]
waterway geographic location political territorial entity
SYSTEM
17
Q13353 Q6139 Q785 Q904566 Q42314 Q898856 Q168856 Q5785 Q3405693 Q25228 Q202023 Q170213 Q766 Q18221 Q778 Q5700 Q25305
(c(Q1048835),P706,c(Q1267889)|c(Q2221906))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q1048835
type Q1267889
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
action count
action filter_multi_types
action find
entity Q983635
relation P706
type Q1267889
type Q2221906
[ANSWER]
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q1267889'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?v WHERE { VALUES ( ?t ) { ( ontology:Q1267889 ) ( ontology:Q2221906 ) } . ?u rdf:type ?t } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { resource:Q983635 property:P706 ?o . { { ?o rdf:type ontology:Q1267889 } UNION { ?o rdf:type ontology:Q2221906 } } } } . FILTER ( ?a > ?e ) }
Montserrat Havelland Jersey Brecqhou Channel Islands Jethou Chernivtsi Oblast Cayman Islands Sark Anguilla Herm Zakarpattia Oblast Jamaica Turks and Caicos Islands The Bahamas Lapland British Virgin Islands
17
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type waterway
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action count
action filter_multi_types
action find
entity Sant Josep de sa Talaia
relation located on terrain feature
type waterway
type geographic location
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'waterway'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?v WHERE { VALUES ( ?t ) { ( ontology:waterway ) ( ontology:geographic_location ) } . ?u rdf:type ?t } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { resource:Sant_Josep_de_sa_Talaia property:located_on_terrain_feature ?o . { { ?o rdf:type ontology:waterway } UNION { ?o rdf:type ontology:geographic_location } } } } . FILTER ( ?a > ?e ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26583571 Q230
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with Georgia or are 7 And 8, Sunnyside present in ?
OR((Q230,P530,c(Q15617994)), (Q26583571,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q230
relation P530
action find
entity Q26583571
relation P17
type Q15617994
{'OR': [['Q230', 'P530', {'concept': 'Q15617994'}], ['Q26583571', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . { { resource:Q230 property:P530 ?w } UNION { resource:Q26583571 property:P17 ?w } } }
7 And 8, Sunnyside Georgia
action filter_type
action union
action find
entity Georgia
relation diplomatic relation
action find
entity 7 And 8, Sunnyside
relation country
type designation for an administrative territorial entity
{'OR': [['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['7 And 8, Sunnyside', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Georgia property:diplomatic_relation ?w } UNION { resource:7_And_8,_Sunnyside property:country ?w } } }
[]
designation for an administrative territorial entity
Q921 Q189 Q38 Q155 Q970 Q884 Q668 Q736 Q967 Q228
SYSTEM
Some of them are Brunei, Iceland, Italy, Brazil, Comoros, South Korea, India, Ecuador, Burundi, Andorra
Q986 Q805 Q1007 Q399 Q801 Q800 Q184 Q974 Q971 Q970 Q241 Q736 Q786 Q668 Q347 Q414 Q1006 Q227 Q225 Q29 Q686 Q222 Q1005 Q145 Q262 Q189 Q784 Q874 Q229 Q228 Q1016 Q32 Q17 Q30 Q37 Q79 Q31 Q1011 Q38 Q902 Q1009 Q878 Q739 Q774 Q423 Q710 Q810 Q983 Q1013 Q191 Q965 Q851 Q967 Q734 Q963 Q424 Q115 Q114 Q117 Q398 Q822 Q750 Q252 Q211 Q1008 Q43 Q155 Q792 Q219 Q796 Q794 Q954 Q889 Q27 Q921 Q819 Q884 Q953 Q881 Q916
OR((Q230,P530,c(Q15617994)), (Q26583571,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q230
relation P530
action find
entity Q26583571
relation P17
type Q15617994
[ANSWERS] hold diplomatic relationship with Georgia or are 7 And 8, Sunnyside present in
{'OR': [['Q230', 'P530', {'concept': 'Q15617994'}], ['Q26583571', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . { { resource:Q230 property:P530 ?w } UNION { resource:Q26583571 property:P17 ?w } } }
Eritrea Yemen Guinea-Bissau Armenia Israel Costa Rica Belarus Democratic Republic of the Congo Republic of the Congo Comoros Cuba Ecuador Dominican Republic India Liechtenstein Argentina Guinea Azerbaijan Bosnia and Herzegovina Spain Vanuatu Albania Gambia United Kingdom Algeria Iceland Dominica Turkmenistan Cyprus Andorra Libya Luxembourg Japan United States of America Lithuania Egypt Belgium Cape Verde Italy Bangladesh Cameroon United Arab Emirates Colombia Guatemala North Korea Kiribati Jordan Equatorial Guinea Lesotho Estonia Burkina Faso Saudi Arabia Burundi Guyana Botswana Cambodia Ethiopia Kenya Ghana Bahrain Lebanon Bolivia Indonesia Latvia Côte d'Ivoire Turkey Brazil El Salvador Bulgaria Iraq Iran Zimbabwe Afghanistan Ireland Brunei Laos South Korea Zambia Vietnam Angola
Brunei, Iceland, Italy, Brazil, Comoros, South Korea, India, Ecuador, Burundi and Andorra hold diplomatic relationship with Georgia or are 7 And 8, Sunnyside present in
Brunei Iceland Italy Brazil Comoros South Korea India Ecuador Burundi Andorra
action filter_type
action union
action find
entity Georgia
relation diplomatic relation
action find
entity 7 And 8, Sunnyside
relation country
type designation for an administrative territorial entity
{'OR': [['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['7 And 8, Sunnyside', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Georgia property:diplomatic_relation ?w } UNION { resource:7_And_8,_Sunnyside property:country ?w } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q230
P530
Q15617994
USER
Do Georgia have tactful political relations with those ones ?
(Q230,P530,Q921) (Q230,P530,Q189) (Q230,P530,Q38) (Q230,P530,Q155) (Q230,P530,Q970) (Q230,P530,Q884) (Q230,P530,Q668) (Q230,P530,Q736) (Q230,P530,Q967) (Q230,P530,Q228)
action is_in
entity prev_answer
action find
entity Q230
relation P530
['Q230', 'P530', 'Q921'] ['Q230', 'P530', 'Q189'] ['Q230', 'P530', 'Q38'] ['Q230', 'P530', 'Q155'] ['Q230', 'P530', 'Q970'] ['Q230', 'P530', 'Q884'] ['Q230', 'P530', 'Q668'] ['Q230', 'P530', 'Q736'] ['Q230', 'P530', 'Q967'] ['Q230', 'P530', 'Q228']
ASK WHERE { resource:Q230 property:P530 ?u . VALUES ( ?u ) { ( resource:Q986 ) ( resource:Q805 ) ( resource:Q1007 ) } }
Georgia
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Brunei'] ['Georgia', 'diplomatic relation', 'Iceland'] ['Georgia', 'diplomatic relation', 'Italy'] ['Georgia', 'diplomatic relation', 'Brazil'] ['Georgia', 'diplomatic relation', 'Comoros'] ['Georgia', 'diplomatic relation', 'South Korea'] ['Georgia', 'diplomatic relation', 'India'] ['Georgia', 'diplomatic relation', 'Ecuador'] ['Georgia', 'diplomatic relation', 'Burundi'] ['Georgia', 'diplomatic relation', 'Andorra']
ASK WHERE { resource:Georgia property:diplomatic_relation ?u . VALUES ( ?u ) { ( resource:Eritrea ) ( resource:Yemen ) ( resource:Guinea-Bissau ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q230,P530,Q921) (Q230,P530,Q189) (Q230,P530,Q38) (Q230,P530,Q155) (Q230,P530,Q970) (Q230,P530,Q884) (Q230,P530,Q668) (Q230,P530,Q736) (Q230,P530,Q967) (Q230,P530,Q228)
action is_in
entity prev_answer
action find
entity Q230
relation P530
[ANSWER]
['Q230', 'P530', 'Q921'] ['Q230', 'P530', 'Q189'] ['Q230', 'P530', 'Q38'] ['Q230', 'P530', 'Q155'] ['Q230', 'P530', 'Q970'] ['Q230', 'P530', 'Q884'] ['Q230', 'P530', 'Q668'] ['Q230', 'P530', 'Q736'] ['Q230', 'P530', 'Q967'] ['Q230', 'P530', 'Q228']
ASK WHERE { resource:Q230 property:P530 ?u . VALUES ( ?u ) { ( resource:Q986 ) ( resource:Q805 ) ( resource:Q1007 ) } }
Yes
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Brunei'] ['Georgia', 'diplomatic relation', 'Iceland'] ['Georgia', 'diplomatic relation', 'Italy'] ['Georgia', 'diplomatic relation', 'Brazil'] ['Georgia', 'diplomatic relation', 'Comoros'] ['Georgia', 'diplomatic relation', 'South Korea'] ['Georgia', 'diplomatic relation', 'India'] ['Georgia', 'diplomatic relation', 'Ecuador'] ['Georgia', 'diplomatic relation', 'Burundi'] ['Georgia', 'diplomatic relation', 'Andorra']
ASK WHERE { resource:Georgia property:diplomatic_relation ?u . VALUES ( ?u ) { ( resource:Eritrea ) ( resource:Yemen ) ( resource:Guinea-Bissau ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q35
P840
Q838948 Q2342494
USER
How many works of art or collectables have their setting located at Denmark ?
(c(Q838948),P840,Q35) (c(Q2342494),P840,Q35)
action count
action union
action filter_type
action find_reverse
entity Q35
relation P840
type Q838948
action filter_type
action find_reverse
entity Q35
relation P840
type Q2342494
[{'concept': 'Q838948'}, 'P840', 'Q35'] [{'concept': 'Q2342494'}, 'P840', 'Q35']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { ?r property:P840 resource:Q35 . ?r rdf:type ontology:Q838948 } UNION { ?r rdf:type ontology:Q2342494 . ?r property:P840 resource:Q35 } }
Denmark
action count
action union
action filter_type
action find_reverse
entity Denmark
relation narrative location
type work of art
action filter_type
action find_reverse
entity Denmark
relation narrative location
type collectable
[{'concept': 'work of art'}, 'narrative location', 'Denmark'] [{'concept': 'collectable'}, 'narrative location', 'Denmark']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { ?r property:narrative_location resource:Denmark . ?r rdf:type ontology:work_of_art } UNION { ?r rdf:type ontology:collectable . ?r property:narrative_location resource:Denmark } }
[]
work of art collectable
SYSTEM
3
Q10428760 Q4656289 Q10428817
(c(Q838948),P840,Q35) (c(Q2342494),P840,Q35)
action count
action union
action filter_type
action find_reverse
entity Q35
relation P840
type Q838948
action filter_type
action find_reverse
entity Q35
relation P840
type Q2342494
[ANSWER]
[{'concept': 'Q838948'}, 'P840', 'Q35'] [{'concept': 'Q2342494'}, 'P840', 'Q35']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { ?r property:P840 resource:Q35 . ?r rdf:type ontology:Q838948 } UNION { ?r rdf:type ontology:Q2342494 . ?r property:P840 resource:Q35 } }
Bert och brorsorna A Day at the Beach Berts bravader
3
action count
action union
action filter_type
action find_reverse
entity Denmark
relation narrative location
type work of art
action filter_type
action find_reverse
entity Denmark
relation narrative location
type collectable
[{'concept': 'work of art'}, 'narrative location', 'Denmark'] [{'concept': 'collectable'}, 'narrative location', 'Denmark']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { ?r property:narrative_location resource:Denmark . ?r rdf:type ontology:work_of_art } UNION { ?r rdf:type ontology:collectable . ?r property:narrative_location resource:Denmark } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q189 Q1375081 Q1064825
P463
Q484652
USER
Does Iceland have a membership of Euro-Mediterranean Parliamentary Assembly and Livonian confederation ?
(Q189,P463,Q1375081) (Q189,P463,Q1064825)
action is_in
entity Q189
action intersection
action find_reverse
entity Q1375081
relation P463
action find_reverse
entity Q1064825
relation P463
['Q189', 'P463', 'Q1375081'] ['Q189', 'P463', 'Q1064825']
ASK WHERE { resource:Q189 property:P463 resource:Q1375081 . resource:Q189 property:P463 resource:Q1064825 }
Iceland Euro-Mediterranean Parliamentary Assembly Livonian confederation
action is_in
entity Iceland
action intersection
action find_reverse
entity Euro-Mediterranean Parliamentary Assembly
relation member of
action find_reverse
entity Livonian confederation
relation member of
['Iceland', 'member of', 'Euro-Mediterranean Parliamentary Assembly'] ['Iceland', 'member of', 'Livonian confederation']
ASK WHERE { resource:Iceland property:member_of resource:Euro-Mediterranean_Parliamentary_Assembly . resource:Iceland property:member_of resource:Livonian_confederation }
[]
international organization
SYSTEM
NO
(Q189,P463,Q1375081) (Q189,P463,Q1064825)
action is_in
entity Q189
action intersection
action find_reverse
entity Q1375081
relation P463
action find_reverse
entity Q1064825
relation P463
[ANSWER]
['Q189', 'P463', 'Q1375081'] ['Q189', 'P463', 'Q1064825']
ASK WHERE { resource:Q189 property:P463 resource:Q1375081 . resource:Q189 property:P463 resource:Q1064825 }
No
action is_in
entity Iceland
action intersection
action find_reverse
entity Euro-Mediterranean Parliamentary Assembly
relation member of
action find_reverse
entity Livonian confederation
relation member of
['Iceland', 'member of', 'Euro-Mediterranean Parliamentary Assembly'] ['Iceland', 'member of', 'Livonian confederation']
ASK WHERE { resource:Iceland property:member_of resource:Euro-Mediterranean_Parliamentary_Assembly . resource:Iceland property:member_of resource:Livonian_confederation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q52295 Q26583571
P47 P17
Q15617994
USER
Which administrative territories are 7 And 8, Sunnyside a part of or are bordered by Grottole ?
OR((Q26583571,P17,c(Q15617994)), (Q52295,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q26583571
relation P17
action find
entity Q52295
relation P47
type Q15617994
{'OR': [['Q26583571', 'P17', {'concept': 'Q15617994'}], ['Q52295', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q26583571 property:P17 ?f } UNION { resource:Q52295 property:P47 ?f } } . ?f rdf:type ontology:Q15617994 }
Grottole 7 And 8, Sunnyside
action filter_type
action union
action find
entity 7 And 8, Sunnyside
relation country
action find
entity Grottole
relation shares border with
type designation for an administrative territorial entity
{'OR': [['7 And 8, Sunnyside', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Grottole', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:7_And_8,_Sunnyside property:country ?f } UNION { resource:Grottole property:shares_border_with ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145 Q52330 Q51829 Q13616 Q52336 Q52320 Q52292 Q52286 Q52297
SYSTEM
United Kingdom, Salandra, Gravina in Puglia, Matera, Tricarico, Miglionico, Grassano, Ferrandina, Irsina
Q145 Q52330 Q51829 Q13616 Q52336 Q52320 Q52292 Q52286 Q52297
OR((Q26583571,P17,c(Q15617994)), (Q52295,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q26583571
relation P17
action find
entity Q52295
relation P47
type Q15617994
[ANSWERS] are 7 And 8, Sunnyside a part of or are bordered by Grottole
{'OR': [['Q26583571', 'P17', {'concept': 'Q15617994'}], ['Q52295', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q26583571 property:P17 ?f } UNION { resource:Q52295 property:P47 ?f } } . ?f rdf:type ontology:Q15617994 }
United Kingdom Salandra Gravina in Puglia Matera Tricarico Miglionico Grassano Ferrandina Irsina
United Kingdom, Salandra, Gravina in Puglia, Matera, Tricarico, Miglionico, Grassano, Ferrandina and Irsina are 7 And 8, Sunnyside a part of or are bordered by Grottole
United Kingdom Salandra Gravina in Puglia Matera Tricarico Miglionico Grassano Ferrandina Irsina
action filter_type
action union
action find
entity 7 And 8, Sunnyside
relation country
action find
entity Grottole
relation shares border with
type designation for an administrative territorial entity
{'OR': [['7 And 8, Sunnyside', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Grottole', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:7_And_8,_Sunnyside property:country ?f } UNION { resource:Grottole property:shares_border_with ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q711
P122
Q15617994 Q12737077 Q15617994
USER
How many administrative territories have approximately the same number of administrative territories and occupations as government as Mongolia ?
(c(Q15617994),P122,c(Q15617994)|c(Q12737077))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action count
action filter_multi_types
action find
entity Q711
relation P122
type Q15617994
type Q12737077
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q15617994'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?w WHERE { VALUES ( ?c ) { ( ontology:Q12737077 ) ( ontology:Q15617994 ) } . ?j rdf:type ?c } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Q711 property:P122 ?o . { { ?o rdf:type ontology:Q15617994 } UNION { ?o rdf:type ontology:Q12737077 } } } } . FILTER ( ?v = ?m ) }
Mongolia
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action count
action filter_multi_types
action find
entity Mongolia
relation basic form of government
type designation for an administrative territorial entity
type occupation
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?w WHERE { VALUES ( ?c ) { ( ontology:occupation ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?j rdf:type ?c } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Mongolia property:basic_form_of_government ?o . { { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?o rdf:type ontology:occupation } } } } . FILTER ( ?v = ?m ) }
[]
designation for an administrative territorial entity occupation designation for an administrative territorial entity
SYSTEM
91
Q702 Q804 Q154547 Q801 Q805 Q419 Q668 Q414 Q142 Q165116 Q145 Q265 Q1130767 Q833 Q711 Q717 Q837 Q208500 Q399 Q258 Q45 Q159 Q43 Q155 Q796 Q794 Q884 Q958 Q315667 Q158290 Q153136 Q33 Q32 Q31 Q30 Q37 Q34 Q1133252 Q39 Q38 Q423 Q953 Q29999 Q153091 Q280312 Q1130957 Q236 Q230 Q232 Q238 Q20 Q1045 Q27 Q28 Q29 Q313175 Q189 Q843 Q184 Q876826 Q347 Q3462133 Q227 Q225 Q224 Q96 Q17 Q1989 Q902 Q725731 Q1033 Q115 Q754 Q212 Q213 Q215 Q917 Q970 Q760 Q574 Q694594 Q1132344 Q696651 Q77 Q199688 Q878 Q948 Q811 Q1011 Q1013 Q1049
(c(Q15617994),P122,c(Q15617994)|c(Q12737077))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action count
action filter_multi_types
action find
entity Q711
relation P122
type Q15617994
type Q12737077
[ANSWER]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q15617994'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?w WHERE { VALUES ( ?c ) { ( ontology:Q12737077 ) ( ontology:Q15617994 ) } . ?j rdf:type ?c } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Q711 property:P122 ?o . { { ?o rdf:type ontology:Q15617994 } UNION { ?o rdf:type ontology:Q12737077 } } } } . FILTER ( ?v = ?m ) }
Federated States of Micronesia Panama duchy Israel Yemen Peru India Argentina France grand duchy United Kingdom Uzbekistan Bear Creek Village Malaysia Mongolia Venezuela Nepal principality Armenia South Africa Portugal Russia Turkey Brazil Iraq Iran South Korea South Sudan Saxe-Weimar Duchy of Lucca Habsburg Empire Finland Luxembourg Belgium United States of America Lithuania Sweden Conyngham Switzerland Italy North Korea Zambia Kingdom of the Netherlands Duchy of Prussia Principality of Lüneburg Courtdale Montenegro Georgia Kazakhstan San Marino Norway Somalia Ireland Hungary Spain Saxe-Lauenburg Iceland Pakistan Belarus Ellwangen Abbey Liechtenstein Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Mexico Japan Saskatchewan Bangladesh Ashley, Pennsylvania Nigeria Ethiopia Trinidad and Tobago Ukraine Czech Republic Slovenia Bhutan Comoros Saint Lucia East Timor Bremen-Verden Avoca Saxe-Eisenach Uruguay Almohad United Arab Emirates Tunisia Nicaragua Cape Verde Lesotho Sudan
91
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action count
action filter_multi_types
action find
entity Mongolia
relation basic form of government
type designation for an administrative territorial entity
type occupation
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?w WHERE { VALUES ( ?c ) { ( ontology:occupation ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?j rdf:type ?c } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Mongolia property:basic_form_of_government ?o . { { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?o rdf:type ontology:occupation } } } } . FILTER ( ?v = ?m ) }
[]