Simple Question (Direct)
Simple Question
Q20872857
P27
Q15617994
USER
Which administrative territory is the native country of George Merchant ?
(Q20872857,P27,c(Q15617994))
action filter_type
action find
entity Q20872857
relation P27
type Q15617994
['Q20872857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q20872857 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
George Merchant
action filter_type
action find
entity George Merchant
relation country of citizenship
type designation for an administrative territorial entity
['George Merchant', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:George_Merchant property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q20872857,P27,c(Q15617994))
action filter_type
action find
entity Q20872857
relation P27
type Q15617994
The [ANSWER] is the native country of George Merchant
['Q20872857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q20872857 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
United Kingdom
The United Kingdom is the native country of George Merchant
United Kingdom
action filter_type
action find
entity George Merchant
relation country of citizenship
type designation for an administrative territorial entity
['George Merchant', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:George_Merchant property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20872857
P641
Q349
USER
What did that person participate in ?
(Q145,P641,c(Q349))
action filter_type
action find
entity Q20872857
relation P641
type Q349
['Q145', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?j WHERE { resource:Q20872857 property:P641 ?j . ?j rdf:type ontology:Q349 }
George Merchant
action filter_type
action find
entity George Merchant
relation sport
type sport
['United Kingdom', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?j WHERE { resource:George_Merchant property:sport ?j . ?j rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q145,P641,c(Q349))
action filter_type
action find
entity Q20872857
relation P641
type Q349
That person participated in [ANSWER]
['Q145', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?j WHERE { resource:Q20872857 property:P641 ?j . ?j rdf:type ontology:Q349 }
association football
That person participated in association football
association football
action filter_type
action find
entity George Merchant
relation sport
type sport
['United Kingdom', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?j WHERE { resource:George_Merchant property:sport ?j . ?j rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20872857
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q2736,P19,c(Q56061))
action filter_type
action find
entity Q20872857
relation P19
type Q56061
['Q2736', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q20872857 property:P19 ?c . ?c rdf:type ontology:Q56061 }
George Merchant
action filter_type
action find
entity George Merchant
relation place of birth
type administrative territorial entity
['association football', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:George_Merchant property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q123709
SYSTEM
Dundee
Q123709
(Q2736,P19,c(Q56061))
action filter_type
action find
entity Q20872857
relation P19
type Q56061
That person was born in [ANSWER]
['Q2736', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q20872857 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Dundee
That person was born in Dundee
Dundee
action filter_type
action find
entity George Merchant
relation place of birth
type administrative territorial entity
['association football', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:George_Merchant property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P190
Q56061
USER
How many administrative territories are twin towns of that administrative territory ?
(Q123709,P190,c(Q56061))
action count
action filter_type
action find
entity Q123709
relation P190
type Q56061
['Q123709', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { ?h rdf:type ontology:Q56061 . resource:Q123709 property:P190 ?h }
action count
action filter_type
action find
entity Dundee
relation sister city
type administrative territorial entity
['Dundee', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Dundee property:sister_city ?h }
[]
administrative territorial entity
SYSTEM
3
Q214178 Q612 Q88
(Q123709,P190,c(Q56061))
action count
action filter_type
action find
entity Q123709
relation P190
type Q56061
[ANSWER]
['Q123709', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { ?h rdf:type ontology:Q56061 . resource:Q123709 property:P190 ?h }
Nablus Dubai Alexandria
3
action count
action filter_type
action find
entity Dundee
relation sister city
type administrative territorial entity
['Dundee', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Dundee property:sister_city ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q123709
P937
Q502895
USER
Which people have Dundee as their work location ?
(c(Q502895),P937,Q123709)
action filter_type
action find_reverse
entity Q123709
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q123709']
SELECT DISTINCT ?p WHERE { ?p property:P937 resource:Q123709 . ?p rdf:type ontology:Q502895 }
Dundee
action filter_type
action find_reverse
entity Dundee
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Dundee']
SELECT DISTINCT ?p WHERE { ?p property:work_location resource:Dundee . ?p rdf:type ontology:common_name }
[]
common name
Q497656 Q17748127 Q936470
SYSTEM
James Ivory, Jens Rassmus, James Alfred Ewing
Q497656 Q17748127 Q936470
(c(Q502895),P937,Q123709)
action filter_type
action find_reverse
entity Q123709
relation P937
type Q502895
[ANSWERS] have Dundee as their work location
[{'concept': 'Q502895'}, 'P937', 'Q123709']
SELECT DISTINCT ?p WHERE { ?p property:P937 resource:Q123709 . ?p rdf:type ontology:Q502895 }
James Ivory Jens Rassmus James Alfred Ewing
James Ivory, Jens Rassmus and James Alfred Ewing have Dundee as their work location
James Ivory Jens Rassmus James Alfred Ewing
action filter_type
action find_reverse
entity Dundee
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Dundee']
SELECT DISTINCT ?p WHERE { ?p property:work_location resource:Dundee . ?p rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q936470
P21
Q290
USER
Which sex does that person possess ?
(Q936470,P21,c(Q290))
action filter_type
action find
entity Q936470
relation P21
type Q290
['Q936470', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q936470 property:P21 ?d . ?d rdf:type ontology:Q290 }
James Alfred Ewing
action filter_type
action find
entity James Alfred Ewing
relation gender
type sex
['James Alfred Ewing', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:James_Alfred_Ewing property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q17748127
SYSTEM
Did you mean Jens Rassmus ?
Q497656 Q17748127 Q936470
(Q497656,P21,c(Q290)) (Q17748127,P21,c(Q290)) (Q936470,P21,c(Q290))
[ANSWER]
['Q497656', 'P21', {'concept': 'Q290'}] ['Q17748127', 'P21', {'concept': 'Q290'}] ['Q936470', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q936470 property:P21 ?d . ?d rdf:type ontology:Q290 }
James Ivory Jens Rassmus James Alfred Ewing
Did you mean Jens Rassmus ?
Jens Rassmus
['James Ivory', 'gender', {'concept': 'sex'}] ['Jens Rassmus', 'gender', {'concept': 'sex'}] ['James Alfred Ewing', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:James_Alfred_Ewing property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
No, I meant James Alfred Ewing. Could you tell me the answer for that?
(Q936470,P21,c(Q290))
Q936470
['Q936470', 'P21', {'concept': 'Q290'}]
['James Alfred Ewing', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q936470,P21,c(Q290))
action filter_type
action find
entity Q936470
relation P21
type Q290
That person possesses a [ANSWER]
['Q936470', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q936470 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity James Alfred Ewing
relation gender
type sex
['James Alfred Ewing', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:James_Alfred_Ewing property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q497656
P166
Q24016972
USER
What was awarded to James Ivory ?
(Q497656,P166,c(Q24016972))
action filter_type
action find
entity Q497656
relation P166
type Q24016972
['Q497656', 'P166', {'concept': 'Q24016972'}]
SELECT DISTINCT ?h WHERE { resource:Q497656 property:P166 ?h . ?h rdf:type ontology:Q24016972 }
James Ivory
action filter_type
action find
entity James Ivory
relation award received
type type of distinction
['James Ivory', 'award received', {'concept': 'type of distinction'}]
SELECT DISTINCT ?h WHERE { resource:James_Ivory property:award_received ?h . ?h rdf:type ontology:type_of_distinction }
[]
type of distinction
Q15631401
SYSTEM
Fellow of the Royal Society
Q15631401
(Q497656,P166,c(Q24016972))
action filter_type
action find
entity Q497656
relation P166
type Q24016972
Be [ANSWER] was awarded to James Ivory
['Q497656', 'P166', {'concept': 'Q24016972'}]
SELECT DISTINCT ?h WHERE { resource:Q497656 property:P166 ?h . ?h rdf:type ontology:Q24016972 }
Fellow of the Royal Society
Be Fellow of the Royal Society was awarded to James Ivory
Fellow of the Royal Society
action filter_type
action find
entity James Ivory
relation award received
type type of distinction
['James Ivory', 'award received', {'concept': 'type of distinction'}]
SELECT DISTINCT ?h WHERE { resource:James_Ivory property:award_received ?h . ?h rdf:type ontology:type_of_distinction }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q41466
P366
Q349 Q1076486 Q2424752
USER
Which sports are considered to be the main utilization of less number of sports venues or products than ice hockey ?
(c(Q1076486)|c(Q2424752),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q1076486
action find_reverse_tuple_counts
relation P366
type Q349
type Q2424752
action count
action filter_multi_types
action find_reverse
entity Q41466
relation P366
type Q1076486
type Q2424752
[[{'concept': 'Q1076486'}, {'concept': 'Q2424752'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?v ) WHERE { { ?h property:P366 ?g . ?g rdf:type ontology:Q349 . ?h rdf:type ontology:Q1076486 } UNION { ?g rdf:type ontology:Q349 . ?h rdf:type ontology:Q2424752 . ?h property:P366 ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k property:P366 resource:Q41466 . { ?k rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1076486 ) ( ontology:Q2424752 ) } } } } . FILTER ( ?v < ?m ) }
ice hockey
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type sports venue
action find_reverse_tuple_counts
relation use
type sport
type product
action count
action filter_multi_types
action find_reverse
entity ice hockey
relation use
type sports venue
type product
[[{'concept': 'sports venue'}, {'concept': 'product'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?v ) WHERE { { ?h property:use ?g . ?g rdf:type ontology:sport . ?h rdf:type ontology:sports_venue } UNION { ?g rdf:type ontology:sport . ?h rdf:type ontology:product . ?h property:use ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k property:use resource:ice_hockey . { ?k rdf:type ?q . VALUES ( ?q ) { ( ontology:sports_venue ) ( ontology:product ) } } } } . FILTER ( ?v < ?m ) }
[]
sport sports venue product
Q206763 Q8418 Q500050
SYSTEM
floorball, handball, cross country running
Q7856 Q5372 Q8418 Q1734 Q206989 Q14300548 Q36908 Q500050 Q1875777 Q108429 Q624161 Q1345388 Q177275 Q206763 Q61065 Q847 Q22857 Q1194269 Q41323 Q7291
(c(Q1076486)|c(Q2424752),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q1076486
action find_reverse_tuple_counts
relation P366
type Q349
type Q2424752
action count
action filter_multi_types
action find_reverse
entity Q41466
relation P366
type Q1076486
type Q2424752
[ANSWERS] are considered to be the main utilization of less number of sports venues or products than ice hockey
[[{'concept': 'Q1076486'}, {'concept': 'Q2424752'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?v ) WHERE { { ?h property:P366 ?g . ?g rdf:type ontology:Q349 . ?h rdf:type ontology:Q1076486 } UNION { ?g rdf:type ontology:Q349 . ?h rdf:type ontology:Q2424752 . ?h property:P366 ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k property:P366 resource:Q41466 . { ?k rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1076486 ) ( ontology:Q2424752 ) } } } } . FILTER ( ?v < ?m ) }
rallying basketball handball volleyball shooting sport skating mountaineering cross country running air racing archery gliding greyhound racing bobsleigh floorball water sport tennis climbing harness racing American football badminton
Floorball, handball and cross country running are considered to be the main utilization of less number of sports venues or products than ice hockey
floorball handball cross country running
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type sports venue
action find_reverse_tuple_counts
relation use
type sport
type product
action count
action filter_multi_types
action find_reverse
entity ice hockey
relation use
type sports venue
type product
[[{'concept': 'sports venue'}, {'concept': 'product'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?v ) WHERE { { ?h property:use ?g . ?g rdf:type ontology:sport . ?h rdf:type ontology:sports_venue } UNION { ?g rdf:type ontology:sport . ?h rdf:type ontology:product . ?h property:use ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k property:use resource:ice_hockey . { ?k rdf:type ?q . VALUES ( ?q ) { ( ontology:sports_venue ) ( ontology:product ) } } } } . FILTER ( ?v < ?m ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20872857
P21
Q290
USER
Which sex does George Merchant belong to ?
(Q20872857,P21,c(Q290))
action filter_type
action find
entity Q20872857
relation P21
type Q290
['Q20872857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q20872857 property:P21 ?g . ?g rdf:type ontology:Q290 }
George Merchant
action filter_type
action find
entity George Merchant
relation gender
type sex
['George Merchant', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:George_Merchant property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q20872857,P21,c(Q290))
action filter_type
action find
entity Q20872857
relation P21
type Q290
George Merchant belongs to [ANSWER]
['Q20872857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q20872857 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
George Merchant belongs to male
male
action filter_type
action find
entity George Merchant
relation gender
type sex
['George Merchant', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:George_Merchant property:gender ?g . ?g rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2373280 Q20872857
P39 P106
Q12737077
USER
Which occupations do George Merchant do for a living or were the positions for which Quintus Aemilius Laetus were appointed ?
OR((Q20872857,P106,c(Q12737077)), (Q2373280,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q20872857
relation P106
action find
entity Q2373280
relation P39
type Q12737077
{'OR': [['Q20872857', 'P106', {'concept': 'Q12737077'}], ['Q2373280', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q20872857 property:P106 ?r } UNION { resource:Q2373280 property:P39 ?r } } . ?r rdf:type ontology:Q12737077 }
Quintus Aemilius Laetus George Merchant
action filter_type
action union
action find
entity George Merchant
relation occupation
action find
entity Quintus Aemilius Laetus
relation position held
type occupation
{'OR': [['George Merchant', 'occupation', {'concept': 'occupation'}], ['Quintus Aemilius Laetus', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?r WHERE { { { resource:George_Merchant property:occupation ?r } UNION { resource:Quintus_Aemilius_Laetus property:position_held ?r } } . ?r rdf:type ontology:occupation }
[]
occupation
Q692343 Q937857
SYSTEM
Praetorian prefect, association football player
Q692343 Q937857
OR((Q20872857,P106,c(Q12737077)), (Q2373280,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q20872857
relation P106
action find
entity Q2373280
relation P39
type Q12737077
George Merchant do for a living [ANSWERS]
{'OR': [['Q20872857', 'P106', {'concept': 'Q12737077'}], ['Q2373280', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q20872857 property:P106 ?r } UNION { resource:Q2373280 property:P39 ?r } } . ?r rdf:type ontology:Q12737077 }
Praetorian prefect association football player
George Merchant do for a living Praetorian prefect and association football player
Praetorian prefect association football player
action filter_type
action union
action find
entity George Merchant
relation occupation
action find
entity Quintus Aemilius Laetus
relation position held
type occupation
{'OR': [['George Merchant', 'occupation', {'concept': 'occupation'}], ['Quintus Aemilius Laetus', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?r WHERE { { { resource:George_Merchant property:occupation ?r } UNION { resource:Quintus_Aemilius_Laetus property:position_held ?r } } . ?r rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1230100 Q17748127
P47 P27
Q1048835
USER
Which political territories are Jens Rassmus an inhabitant of or are adjacent to La Selva del Camp ?
OR((Q17748127,P27,c(Q1048835)), (Q1230100,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q17748127
relation P27
action find
entity Q1230100
relation P47
type Q1048835
{'OR': [['Q17748127', 'P27', {'concept': 'Q1048835'}], ['Q1230100', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q17748127 property:P27 ?v } UNION { resource:Q1230100 property:P47 ?v } } . ?v rdf:type ontology:Q1048835 }
La Selva del Camp Jens Rassmus
action filter_type
action union
action find
entity Jens Rassmus
relation country of citizenship
action find
entity La Selva del Camp
relation shares border with
type political territorial entity
{'OR': [['Jens Rassmus', 'country of citizenship', {'concept': 'political territorial entity'}], ['La Selva del Camp', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Jens_Rassmus property:country_of_citizenship ?v } UNION { resource:La_Selva_del_Camp property:shares_border_with ?v } } . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1229669 Q531967 Q550210 Q542633 Q427790 Q183 Q1233410 Q545317 Q487096 Q1189985
SYSTEM
L'Albiol, Perafort, Constantí, Almoster, Alcover, Germany, L'Aleixar, El Morell, Reus, Vilallonga del Camp
Q1229669 Q531967 Q550210 Q542633 Q427790 Q183 Q1233410 Q545317 Q487096 Q1189985
OR((Q17748127,P27,c(Q1048835)), (Q1230100,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q17748127
relation P27
action find
entity Q1230100
relation P47
type Q1048835
[ANSWERS] are Jens Rassmus an inhabitant of or are adjacent to La Selva del Camp
{'OR': [['Q17748127', 'P27', {'concept': 'Q1048835'}], ['Q1230100', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q17748127 property:P27 ?v } UNION { resource:Q1230100 property:P47 ?v } } . ?v rdf:type ontology:Q1048835 }
L'Albiol Perafort Constantí Almoster Alcover Germany L'Aleixar El Morell Reus Vilallonga del Camp
L'Albiol, Perafort, Constantí, Almoster, Alcover, Germany, L'Aleixar, El Morell, Reus and Vilallonga del Camp are Jens Rassmus an inhabitant of or are adjacent to La Selva del Camp
L'Albiol Perafort Constantí Almoster Alcover Germany L'Aleixar El Morell Reus Vilallonga del Camp
action filter_type
action union
action find
entity Jens Rassmus
relation country of citizenship
action find
entity La Selva del Camp
relation shares border with
type political territorial entity
{'OR': [['Jens Rassmus', 'country of citizenship', {'concept': 'political territorial entity'}], ['La Selva del Camp', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Jens_Rassmus property:country_of_citizenship ?v } UNION { resource:La_Selva_del_Camp property:shares_border_with ?v } } . ?v rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q851
P530
Q1048835 Q15617994
USER
How many administrative territories have ambassadorial relations with around the same number of political territories as Saudi Arabia ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q851
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?t ) WHERE { ?i property:P530 ?q . ?i rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q851 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?t = ?f ) }
Saudi Arabia
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Saudi Arabia
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 ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?t ) WHERE { ?i property:diplomatic_relation ?q . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Saudi_Arabia property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t = ?f ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
81
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q851 Q733 Q734 Q736 Q233 Q20 Q1041 Q27 Q843 Q184 Q1029 Q1028 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q851
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?t ) WHERE { ?i property:P530 ?q . ?i rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q851 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?t = ?f ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Saudi Arabia Paraguay Guyana Ecuador Malta Norway Senegal Ireland Pakistan Belarus Mozambique Morocco Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
81
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Saudi Arabia
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 ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?t ) WHERE { ?i property:diplomatic_relation ?q . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Saudi_Arabia property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t = ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1007
P530
Q1048835 Q15617994
USER
And what about Guinea-Bissau?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1007
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?v ) WHERE { ?m rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 . ?m property:P530 ?w } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { resource:Q1007 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?v = ?l ) }
Guinea-Bissau
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Guinea-Bissau
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 ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?v ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity . ?m property:diplomatic_relation ?w } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { resource:Guinea-Bissau property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v = ?l ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
124
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1007
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?v ) WHERE { ?m rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 . ?m property:P530 ?w } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { resource:Q1007 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?v = ?l ) }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
124
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Guinea-Bissau
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 ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?v ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity . ?m property:diplomatic_relation ?w } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { resource:Guinea-Bissau property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v = ?l ) }
[]