Simple Question (Direct)
Simple Question
Q826362
P54
Q12973014
USER
Which sports team is Siniša Martinović a member of ?
(Q826362,P54,c(Q12973014))
action filter_type
action find
entity Q826362
relation P54
type Q12973014
['Q826362', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?a WHERE { resource:Q826362 property:P54 ?a . ?a rdf:type ontology:Q12973014 }
Siniša Martinović
action filter_type
action find
entity Siniša Martinović
relation member of sports team
type sports team
['Siniša Martinović', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?a WHERE { resource:Siniša_Martinović property:member_of_sports_team ?a . ?a rdf:type ontology:sports_team }
[]
sports team
Q514676
SYSTEM
SERC Wild Wings
Q514676
(Q826362,P54,c(Q12973014))
action filter_type
action find
entity Q826362
relation P54
type Q12973014
[ANSWER] is Siniša Martinović a member of
['Q826362', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?a WHERE { resource:Q826362 property:P54 ?a . ?a rdf:type ontology:Q12973014 }
SERC Wild Wings
SERC Wild Wings is Siniša Martinović a member of
SERC Wild Wings
action filter_type
action find
entity Siniša Martinović
relation member of sports team
type sports team
['Siniša Martinović', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?a WHERE { resource:Siniša_Martinović property:member_of_sports_team ?a . ?a rdf:type ontology:sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q514676
P641
Q349
USER
What did that sports team participate in ?
(Q514676,P641,c(Q349))
action filter_type
action find
entity Q514676
relation P641
type Q349
['Q514676', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q514676 property:P641 ?h . ?h rdf:type ontology:Q349 }
SERC Wild Wings
action filter_type
action find
entity SERC Wild Wings
relation sport
type sport
['SERC Wild Wings', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:SERC_Wild_Wings property:sport ?h . ?h rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q514676,P641,c(Q349))
action filter_type
action find
entity Q514676
relation P641
type Q349
That sports team participated in [ANSWER]
['Q514676', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q514676 property:P641 ?h . ?h rdf:type ontology:Q349 }
ice hockey
That sports team participated in ice hockey
ice hockey
action filter_type
action find
entity SERC Wild Wings
relation sport
type sport
['SERC Wild Wings', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:SERC_Wild_Wings property:sport ?h . ?h rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q3857296 Q514676
P641
Q349
USER
Or Miguel Ángel Díaz?
OR((Q514676,P641,c(Q349)), (Q3857296,P641,c(Q349)))
action filter_type
action union
action find
entity Q514676
relation P641
action find
entity Q3857296
relation P641
type Q349
{'OR': [['Q514676', 'P641', {'concept': 'Q349'}], ['Q3857296', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q514676 property:P641 ?r } UNION { resource:Q3857296 property:P641 ?r } } . ?r rdf:type ontology:Q349 }
Miguel Ángel Díaz SERC Wild Wings
action filter_type
action union
action find
entity SERC Wild Wings
relation sport
action find
entity Miguel Ángel Díaz
relation sport
type sport
{'OR': [['SERC Wild Wings', 'sport', {'concept': 'sport'}], ['Miguel Ángel Díaz', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?r WHERE { { { resource:SERC_Wild_Wings property:sport ?r } UNION { resource:Miguel_Ángel_Díaz property:sport ?r } } . ?r rdf:type ontology:sport }
[]
sport
Q41466 Q2736
SYSTEM
ice hockey, association football
Q41466 Q2736
OR((Q514676,P641,c(Q349)), (Q3857296,P641,c(Q349)))
action filter_type
action union
action find
entity Q514676
relation P641
action find
entity Q3857296
relation P641
type Q349
[ANSWERS]
{'OR': [['Q514676', 'P641', {'concept': 'Q349'}], ['Q3857296', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q514676 property:P641 ?r } UNION { resource:Q3857296 property:P641 ?r } } . ?r rdf:type ontology:Q349 }
ice hockey association football
ice hockey association football
action filter_type
action union
action find
entity SERC Wild Wings
relation sport
action find
entity Miguel Ángel Díaz
relation sport
type sport
{'OR': [['SERC Wild Wings', 'sport', {'concept': 'sport'}], ['Miguel Ángel Díaz', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?r WHERE { { { resource:SERC_Wild_Wings property:sport ?r } UNION { resource:Miguel_Ángel_Díaz property:sport ?r } } . ?r rdf:type ontology:sport }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P101
Q349 Q2342494
USER
Which sports do approximately the same number of collectables belong to as that sport ?
(c(Q2342494),P101,c(Q349))
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { ?z property:Q627436 ?y . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q1567764 }
[{'concept': 'collectable'}, 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { ?z property:field_of_work ?y . ?z rdf:type ontology:collectable . ?y rdf:type ontology:sport }
[]
sport collectable
Comparative|More/Less|Single entity type|Clarification
Q2736
SYSTEM
Did you mean association football ?
(c(Q2342494),P101,c(Q349))
[ANSWER]
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { ?z property:Q627436 ?y . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q1567764 }
Did you mean association football ?
association football
[{'concept': 'collectable'}, 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { ?z property:field_of_work ?y . ?z rdf:type ontology:collectable . ?y rdf:type ontology:sport }
[]
Comparative Reasoning (All)
USER
No, I meant ice hockey. Could you tell me the answer for that?
(c(Q2342494),P101,c(Q349))
Q41466
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q349'}]
[{'concept': 'collectable'}, 'field of work', {'concept': 'sport'}]
[]
Q809831 Q136851 Q10962
SYSTEM
BASE jumping, curling, rugby league
Q10962 Q136851 Q43450 Q4543 Q170737 Q5375 Q22857 Q14300548 Q1734 Q31920 Q12100 Q8418 Q15991265 Q2215841 Q500050 Q108429 Q592031 Q7707 Q809831 Q847 Q3177899 Q2736 Q177275 Q42486 Q5372 Q2167372 Q130949 Q1497658 Q178678 Q41466 Q114466 Q328716 Q131359 Q201965 Q2922870 Q204686 Q11420 Q124100 Q1541373 Q41323
(c(Q2342494),P101,c(Q349))
[ANSWERS] approximately the same number of collectables belong to as that sport
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { ?z property:Q627436 ?y . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q1567764 }
rugby league curling gymnastics beach volleyball long jump cricket climbing skating volleyball swimming fencing handball amateur football cycle sport cross country running archery wingsuit flying water polo BASE jumping tennis bowling association football bobsleigh wrestling basketball fell running skiing memory sport kick boxing ice hockey mixed martial arts motorcycle sport professional wrestling Nordic combined boxe winter sport judo bodybuilding sport climbing American football
BASE jumping, curling and rugby league approximately the same number of collectables belong to as that sport
BASE jumping curling rugby league
[{'concept': 'collectable'}, 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { ?z property:field_of_work ?y . ?z rdf:type ontology:collectable . ?y rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3475168 Q514676
P17
Q1048835
USER
Which political territories are SERC Wild Wings or Scarborough—Guildwood present in ?
OR((Q514676,P17,c(Q1048835)), (Q3475168,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q514676
relation P17
action find
entity Q3475168
relation P17
type Q1048835
{'OR': [['Q514676', 'P17', {'concept': 'Q1048835'}], ['Q3475168', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q514676 property:P17 ?u } UNION { resource:Q3475168 property:P17 ?u } } . ?u rdf:type ontology:Q1048835 }
Scarborough—Guildwood SERC Wild Wings
action filter_type
action union
action find
entity SERC Wild Wings
relation country
action find
entity Scarborough—Guildwood
relation country
type political territorial entity
{'OR': [['SERC Wild Wings', 'country', {'concept': 'political territorial entity'}], ['Scarborough—Guildwood', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:SERC_Wild_Wings property:country ?u } UNION { resource:Scarborough—Guildwood property:country ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q183
SYSTEM
Canada, Germany
Q16 Q183
OR((Q514676,P17,c(Q1048835)), (Q3475168,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q514676
relation P17
action find
entity Q3475168
relation P17
type Q1048835
[ANSWERS]
{'OR': [['Q514676', 'P17', {'concept': 'Q1048835'}], ['Q3475168', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q514676 property:P17 ?u } UNION { resource:Q3475168 property:P17 ?u } } . ?u rdf:type ontology:Q1048835 }
Canada Germany
Which political territories are SERC Wild Wings or Scarborough—Guildwood present in
Canada Germany
action filter_type
action union
action find
entity SERC Wild Wings
relation country
action find
entity Scarborough—Guildwood
relation country
type political territorial entity
{'OR': [['SERC Wild Wings', 'country', {'concept': 'political territorial entity'}], ['Scarborough—Guildwood', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:SERC_Wild_Wings property:country ?u } UNION { resource:Scarborough—Guildwood property:country ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q837
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with approximately the same number of political territories as Nepal ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q837
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ontology:Q15617994 . resource:Q837 property:P530 ?m } } . FILTER ( ?p = ?z ) . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?p ) WHERE { ?u property:P530 ?a . ?a rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 } GROUP BY ?u } }
Nepal
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 Nepal
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Nepal property:diplomatic_relation ?m } } . FILTER ( ?p = ?z ) . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?p ) WHERE { ?u property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q184 Q32
SYSTEM
Georgia, Belarus, Luxembourg
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q837
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with approximately the same number of political territories as Nepal
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ontology:Q15617994 . resource:Q837 property:P530 ?m } } . FILTER ( ?p = ?z ) . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?p ) WHERE { ?u property:P530 ?a . ?a rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 } GROUP BY ?u } }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Georgia, Belarus and Luxembourg have diplomatic relationships with approximately the same number of political territories as Nepal
Georgia Belarus Luxembourg
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 Nepal
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Nepal property:diplomatic_relation ?m } } . FILTER ( ?p = ?z ) . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?p ) WHERE { ?u property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1037
P530
Q15617994 Q1048835
USER
And how about Rwanda?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1037
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?r ) WHERE { ?g property:P530 ?f . ?g rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { resource:Q1037 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?r = ?y ) }
Rwanda
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 Rwanda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?r ) WHERE { ?g property:diplomatic_relation ?f . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { resource:Rwanda property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r = ?y ) }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q184 Q32
SYSTEM
Georgia, Belarus, Luxembourg
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1037
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?r ) WHERE { ?g property:P530 ?f . ?g rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { resource:Q1037 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?r = ?y ) }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Georgia Belarus Luxembourg
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 Rwanda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?r ) WHERE { ?g property:diplomatic_relation ?f . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { resource:Rwanda property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r = ?y ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q645103
P530
Q15617994
USER
Do Steineroth have tactful political relations with those ones ?
(Q645103,P530,Q230) (Q645103,P530,Q184) (Q645103,P530,Q32)
action is_in
entity prev_answer
action find
entity Q645103
relation P530
['Q645103', 'P530', 'Q230'] ['Q645103', 'P530', 'Q184'] ['Q645103', 'P530', 'Q32']
ASK WHERE { resource:Q645103 property:P530 ?e . VALUES ( ?e ) { ( resource:Q702 ) ( resource:Q262 ) ( resource:Q265 ) } }
Steineroth
action is_in
entity prev_answer
action find
entity Steineroth
relation diplomatic relation
['Steineroth', 'diplomatic relation', 'Georgia'] ['Steineroth', 'diplomatic relation', 'Belarus'] ['Steineroth', 'diplomatic relation', 'Luxembourg']
ASK WHERE { resource:Steineroth property:diplomatic_relation ?e . VALUES ( ?e ) { ( resource:Federated_States_of_Micronesia ) ( resource:Algeria ) ( resource:Uzbekistan ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q645103,P530,Q230) (Q645103,P530,Q184) (Q645103,P530,Q32)
action is_in
entity prev_answer
action find
entity Q645103
relation P530
[ANSWER]
['Q645103', 'P530', 'Q230'] ['Q645103', 'P530', 'Q184'] ['Q645103', 'P530', 'Q32']
ASK WHERE { resource:Q645103 property:P530 ?e . VALUES ( ?e ) { ( resource:Q702 ) ( resource:Q262 ) ( resource:Q265 ) } }
No
action is_in
entity prev_answer
action find
entity Steineroth
relation diplomatic relation
['Steineroth', 'diplomatic relation', 'Georgia'] ['Steineroth', 'diplomatic relation', 'Belarus'] ['Steineroth', 'diplomatic relation', 'Luxembourg']
ASK WHERE { resource:Steineroth property:diplomatic_relation ?e . VALUES ( ?e ) { ( resource:Federated_States_of_Micronesia ) ( resource:Algeria ) ( resource:Uzbekistan ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q1048835 Q1048835
USER
Which political territories are known to have diplomatic connections with atmost 113 administrative territories and political territories ?
(c(Q1048835),P530,c(Q15617994)|c(Q1048835))
action atmost
action union
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 113
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?h ) WHERE { { ?c rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?c property:P530 ?q } UNION { ?c property:P530 ?q . ?c rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } } GROUP BY ?c } . FILTER ( ?h <= 113 ) }
action atmost
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 113
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?h ) WHERE { { ?c rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?q } UNION { ?c property:diplomatic_relation ?q . ?c rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } } GROUP BY ?c } . FILTER ( ?h <= 113 ) }
[]
designation for an administrative territorial entity political territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994)|c(Q1048835))
action atmost
action union
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 113
[ANSWERS] are known to have diplomatic connections with atmost 113 administrative territories and political territories
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?h ) WHERE { { ?c rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?c property:P530 ?q } UNION { ?c property:P530 ?q . ?c rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } } GROUP BY ?c } . FILTER ( ?h <= 113 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria are known to have diplomatic connections with atmost 113 administrative territories and political territories
Denmark Canada Austria
action atmost
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 113
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?h ) WHERE { { ?c rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?q } UNION { ?c property:diplomatic_relation ?q . ?c rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } } GROUP BY ?c } . FILTER ( ?h <= 113 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with exactly 2 political territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?p ) WHERE { ?h property:P530 ?t . ?t rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?p = 2 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?p ) WHERE { ?h property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?p = 2 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
48
Q804 Q800 Q419 Q668 Q414 Q55 Q148 Q783 Q45 Q41 Q796 Q794 Q954 Q889 Q881 Q811 Q31 Q924 Q928 Q733 Q734 Q233 Q1041 Q27 Q1028 Q736 Q786 Q225 Q224 Q96 Q347 Q17 Q902 Q1036 Q1033 Q963 Q298 Q117 Q750 Q213 Q215 Q219 Q916 Q1009 Q774 Q810 Q29 Q869
(c(Q1048835),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?p ) WHERE { ?h property:P530 ?t . ?t rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?p = 2 ) }
Panama Costa Rica Peru India Argentina Netherlands People's Republic of China Honduras Portugal Greece Iraq Iran Zimbabwe Afghanistan Vietnam Nicaragua Belgium Tanzania Philippines Paraguay Guyana Malta Senegal Ireland Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Liechtenstein Japan Bangladesh Uganda Nigeria Botswana Chile Ghana Bolivia Czech Republic Slovenia Bulgaria Angola Cameroon Guatemala Jordan Spain Thailand
48
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?p ) WHERE { ?h property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?p = 2 ) }
[]