Simple Question (Direct)
Simple Question
Q2849007
P69
Q163740
USER
Which nonprofit organization was Andrés Conesa Labastida educated at ?
(Q2849007,P69,c(Q163740))
action filter_type
action find
entity Q2849007
relation P69
type Q163740
['Q2849007', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?y WHERE { resource:Q2849007 property:P69 ?y . ?y rdf:type ontology:Q163740 }
Andrés Conesa Labastida
action filter_type
action find
entity Andrés Conesa Labastida
relation educated at
type nonprofit organization
['Andrés Conesa Labastida', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?y WHERE { resource:Andrés_Conesa_Labastida property:educated_at ?y . ?y rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49108
SYSTEM
Massachusetts Institute of Technology
Q49108
(Q2849007,P69,c(Q163740))
action filter_type
action find
entity Q2849007
relation P69
type Q163740
Andrés Conesa Labastida was educated at [ANSWER]
['Q2849007', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?y WHERE { resource:Q2849007 property:P69 ?y . ?y rdf:type ontology:Q163740 }
Massachusetts Institute of Technology
Andrés Conesa Labastida was educated at Massachusetts Institute of Technology
Massachusetts Institute of Technology
action filter_type
action find
entity Andrés Conesa Labastida
relation educated at
type nonprofit organization
['Andrés Conesa Labastida', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?y WHERE { resource:Andrés_Conesa_Labastida property:educated_at ?y . ?y rdf:type ontology:nonprofit_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q49108
P1416
Q502895
USER
Which person is affiliated to that nonprofit organization ?
(c(Q502895),P1416,Q49108)
action filter_type
action find_reverse
entity Q49108
relation P1416
type Q502895
[{'concept': 'Q502895'}, 'P1416', 'Q49108']
SELECT DISTINCT ?o WHERE { ?o property:P1416 resource:Q49108 . ?o rdf:type ontology:Q502895 }
Massachusetts Institute of Technology
action filter_type
action find_reverse
entity Massachusetts Institute of Technology
relation affiliation
type common name
[{'concept': 'common name'}, 'affiliation', 'Massachusetts Institute of Technology']
SELECT DISTINCT ?o WHERE { ?o property:affiliation resource:Massachusetts_Institute_of_Technology . ?o rdf:type ontology:common_name }
[]
common name
Q41378
SYSTEM
Charles Stark Draper
Q41378
(c(Q502895),P1416,Q49108)
action filter_type
action find_reverse
entity Q49108
relation P1416
type Q502895
[ANSWER] is affiliated to that nonprofit organization
[{'concept': 'Q502895'}, 'P1416', 'Q49108']
SELECT DISTINCT ?o WHERE { ?o property:P1416 resource:Q49108 . ?o rdf:type ontology:Q502895 }
Charles Stark Draper
Charles Stark Draper is affiliated to that nonprofit organization
Charles Stark Draper
action filter_type
action find_reverse
entity Massachusetts Institute of Technology
relation affiliation
type common name
[{'concept': 'common name'}, 'affiliation', 'Massachusetts Institute of Technology']
SELECT DISTINCT ?o WHERE { ?o property:affiliation resource:Massachusetts_Institute_of_Technology . ?o rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2849007
P26
Q502895
USER
Which person is the spouse of Andrés Conesa Labastida ?
(Q2849007,P26,c(Q502895))
action filter_type
action find
entity Q2849007
relation P26
type Q502895
['Q2849007', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q2849007 property:P26 ?g . ?g rdf:type ontology:Q502895 }
Andrés Conesa Labastida
action filter_type
action find
entity Andrés Conesa Labastida
relation spouse
type common name
['Andrés Conesa Labastida', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Andrés_Conesa_Labastida property:spouse ?g . ?g rdf:type ontology:common_name }
[]
common name
Q27194
SYSTEM
Lorena Ochoa
Q27194
(Q2849007,P26,c(Q502895))
action filter_type
action find
entity Q2849007
relation P26
type Q502895
[ANSWER] is the spouse of Andrés Conesa Labastida
['Q2849007', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q2849007 property:P26 ?g . ?g rdf:type ontology:Q502895 }
Lorena Ochoa
Lorena Ochoa is the spouse of Andrés Conesa Labastida
Lorena Ochoa
action filter_type
action find
entity Andrés Conesa Labastida
relation spouse
type common name
['Andrés Conesa Labastida', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Andrés_Conesa_Labastida property:spouse ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q837590
Q502895
USER
And how about Prince Takechi?
(Q837590,P26,c(Q502895))
action filter_type
action find
entity Q837590
relation P26
type Q502895
['Q837590', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q837590 property:P26 ?t . ?t rdf:type ontology:Q502895 }
Prince Takechi
action filter_type
action find
entity Prince Takechi
relation spouse
type common name
['Prince Takechi', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Prince_Takechi property:spouse ?t . ?t rdf:type ontology:common_name }
[]
common name
Q7244845 Q7244758
SYSTEM
Princess Tajima, Princess Minabe
Q7244845 Q7244758
(Q837590,P26,c(Q502895))
action filter_type
action find
entity Q837590
relation P26
type Q502895
[ANSWERS]
['Q837590', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q837590 property:P26 ?t . ?t rdf:type ontology:Q502895 }
Princess Tajima Princess Minabe
Princess Tajima Princess Minabe
action filter_type
action find
entity Prince Takechi
relation spouse
type common name
['Prince Takechi', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Prince_Takechi property:spouse ?t . ?t rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6816366 Q2849007
P27
Q15617994
USER
Which administrative territories are the native countriesof Andrés Conesa Labastida or Menachem Gueffen ?
OR((Q2849007,P27,c(Q15617994)), (Q6816366,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2849007
relation P27
action find
entity Q6816366
relation P27
type Q15617994
{'OR': [['Q2849007', 'P27', {'concept': 'Q15617994'}], ['Q6816366', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q2849007 property:P27 ?q } UNION { resource:Q6816366 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
Menachem Gueffen Andrés Conesa Labastida
action filter_type
action union
action find
entity Andrés Conesa Labastida
relation country of citizenship
action find
entity Menachem Gueffen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Andrés Conesa Labastida', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Menachem Gueffen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Andrés_Conesa_Labastida property:country_of_citizenship ?q } UNION { resource:Menachem_Gueffen property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96 Q801
SYSTEM
Mexico, Israel
Q96 Q801
OR((Q2849007,P27,c(Q15617994)), (Q6816366,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2849007
relation P27
action find
entity Q6816366
relation P27
type Q15617994
[ANSWERS] are the native countriesof Andrés Conesa Labastida or Menachem Gueffen
{'OR': [['Q2849007', 'P27', {'concept': 'Q15617994'}], ['Q6816366', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q2849007 property:P27 ?q } UNION { resource:Q6816366 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
Mexico Israel
Mexico and Israel are the native countriesof Andrés Conesa Labastida or Menachem Gueffen
Mexico Israel
action filter_type
action union
action find
entity Andrés Conesa Labastida
relation country of citizenship
action find
entity Menachem Gueffen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Andrés Conesa Labastida', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Menachem Gueffen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Andrés_Conesa_Labastida property:country_of_citizenship ?q } UNION { resource:Menachem_Gueffen property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q801
P437
Q82799
USER
Which name was distributed as that administrative territory ?
(c(Q82799),P437,Q801)
action filter_type
action find_reverse
entity Q801
relation P437
type Q82799
[{'concept': 'Q82799'}, 'P437', 'Q801']
SELECT DISTINCT ?w WHERE { ?w property:P437 resource:Q801 . ?w rdf:type ontology:Q82799 }
Israel
action filter_type
action find_reverse
entity Israel
relation distribution
type name
[{'concept': 'name'}, 'distribution', 'Israel']
SELECT DISTINCT ?w WHERE { ?w property:distribution resource:Israel . ?w rdf:type ontology:name }
[]
name
Clarification for simple ques.
Q801
SYSTEM
Did you mean Israel ?
Q96 Q801
(c(Q82799),P437,Q96) (c(Q82799),P437,Q801)
[ANSWER]
[{'concept': 'Q82799'}, 'P437', 'Q96'] [{'concept': 'Q82799'}, 'P437', 'Q801']
SELECT DISTINCT ?w WHERE { ?w property:P437 resource:Q801 . ?w rdf:type ontology:Q82799 }
Mexico Israel
Did you mean Israel ?
Israel
[{'concept': 'name'}, 'distribution', 'Mexico'] [{'concept': 'name'}, 'distribution', 'Israel']
SELECT DISTINCT ?w WHERE { ?w property:distribution resource:Israel . ?w rdf:type ontology:name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q82799),P437,Q801)
[{'concept': 'Q82799'}, 'P437', 'Q801']
[{'concept': 'name'}, 'distribution', 'Israel']
[]
Q19891513
SYSTEM
Fonseca
Q19891513
(c(Q82799),P437,Q801)
action filter_type
action find_reverse
entity Q801
relation P437
type Q82799
[ANSWER] was distributed as that administrative territory
[{'concept': 'Q82799'}, 'P437', 'Q801']
SELECT DISTINCT ?w WHERE { ?w property:P437 resource:Q801 . ?w rdf:type ontology:Q82799 }
Fonseca
Fonseca was distributed as that administrative territory
Fonseca
action filter_type
action find_reverse
entity Israel
relation distribution
type name
[{'concept': 'name'}, 'distribution', 'Israel']
SELECT DISTINCT ?w WHERE { ?w property:distribution resource:Israel . ?w rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q19891513 Q7036821
P407
Q34770
USER
Is Fonseca composed in Nila language ?
(Q19891513,P407,Q7036821)
action is_in
entity Q7036821
action find
entity Q19891513
relation P407
['Q19891513', 'P407', 'Q7036821']
ASK WHERE { resource:Q19891513 property:P407 resource:Q7036821 }
Fonseca Nila language
action is_in
entity Nila language
action find
entity Fonseca
relation language of work or name
['Fonseca', 'language of work or name', 'Nila language']
ASK WHERE { resource:Fonseca property:language_of_work_or_name resource:Nila_language }
[]
language
SYSTEM
NO
(Q19891513,P407,Q7036821)
action is_in
entity Q7036821
action find
entity Q19891513
relation P407
[ANSWER]
['Q19891513', 'P407', 'Q7036821']
ASK WHERE { resource:Q19891513 property:P407 resource:Q7036821 }
No
action is_in
entity Nila language
action find
entity Fonseca
relation language of work or name
['Fonseca', 'language of work or name', 'Nila language']
ASK WHERE { resource:Fonseca property:language_of_work_or_name resource:Nila_language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19891513
P734
Q502895
USER
Which people have that one as last name ?
action filter_type
action find_reverse
entity Q19891513
relation P734
type Q502895
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P734 resource:Q19891513 }
Fonseca
action filter_type
action find_reverse
entity Fonseca
relation family name
type common name
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:family_name resource:Fonseca }
[]
common name
Q362144 Q462842 Q4888873
SYSTEM
Francisco Fonseca, Daniel Fonseca, Gregorio Fonseca
Q5829666 Q5394172 Q505947 Q4888873 Q362144 Q462842 Q6099627
action filter_type
action find_reverse
entity Q19891513
relation P734
type Q502895
[ANSWERS] have that one as last name
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P734 resource:Q19891513 }
Elizabeth Fonseca Corrales Ernesto Sanchez Carrillo Del Semen Adriana Fonseca Gregorio Fonseca Francisco Fonseca Daniel Fonseca Ramón Fonseca Mora
Francisco Fonseca, Daniel Fonseca and Gregorio Fonseca have that one as last name
Francisco Fonseca Daniel Fonseca Gregorio Fonseca
action filter_type
action find_reverse
entity Fonseca
relation family name
type common name
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:family_name resource:Fonseca }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q497224
P1303
Q34379 Q502895
USER
Which musical instruments can approximately the same number of people perform with as Kayamb ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q497224
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:P1303 ?m . ?g rdf:type ontology:Q502895 . ?m rdf:type ontology:Q34379 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Q497224 property:P1303 ?p . ?p rdf:type ontology:Q34379 } } . FILTER ( ?h = ?w ) }
Kayamb
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Kayamb
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:instrument ?m . ?g rdf:type ontology:common_name . ?m rdf:type ontology:musical_instrument } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Kayamb property:instrument ?p . ?p rdf:type ontology:musical_instrument } } . FILTER ( ?h = ?w ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q497224
relation P1303
type Q34379
[ANSWERS] can approximately the same number of people perform with as Kayamb
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:P1303 ?m . ?g rdf:type ontology:Q502895 . ?m rdf:type ontology:Q34379 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Q497224 property:P1303 ?p . ?p rdf:type ontology:Q34379 } } . FILTER ( ?h = ?w ) }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Davul, harpsichord and Wurlitzer electric piano can approximately the same number of people perform with as Kayamb
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Kayamb
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:instrument ?m . ?g rdf:type ontology:common_name . ?m rdf:type ontology:musical_instrument } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Kayamb property:instrument ?p . ?p rdf:type ontology:musical_instrument } } . FILTER ( ?h = ?w ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q22017425 Q801
P530 P27
Q1048835
USER
Which political territories have a diplomatic relationship with Israel and are Frank Clarke a civilian of ?
AND((Q801,P530,c(Q1048835)), (Q22017425,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q801
relation P530
action find
entity Q22017425
relation P27
type Q1048835
{'AND': [['Q801', 'P530', {'concept': 'Q1048835'}], ['Q22017425', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { resource:Q801 property:P530 ?g . resource:Q22017425 property:P27 ?g . ?g rdf:type ontology:Q1048835 }
Frank Clarke Israel
action filter_type
action intersection
action find
entity Israel
relation diplomatic relation
action find
entity Frank Clarke
relation country of citizenship
type political territorial entity
{'AND': [['Israel', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Frank Clarke', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { resource:Israel property:diplomatic_relation ?g . resource:Frank_Clarke property:country_of_citizenship ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
AND((Q801,P530,c(Q1048835)), (Q22017425,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q801
relation P530
action find
entity Q22017425
relation P27
type Q1048835
[ANSWER] have a diplomatic relationship with Israel and are Frank Clarke a civilian of
{'AND': [['Q801', 'P530', {'concept': 'Q1048835'}], ['Q22017425', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { resource:Q801 property:P530 ?g . resource:Q22017425 property:P27 ?g . ?g rdf:type ontology:Q1048835 }
Australia
Australia have a diplomatic relationship with Israel and are Frank Clarke a civilian of
Australia
action filter_type
action intersection
action find
entity Israel
relation diplomatic relation
action find
entity Frank Clarke
relation country of citizenship
type political territorial entity
{'AND': [['Israel', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Frank Clarke', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { resource:Israel property:diplomatic_relation ?g . resource:Frank_Clarke property:country_of_citizenship ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories holds diplomatic relationship with atleast 2 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 2
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?t ) WHERE { ?g property:P530 ?p . ?g rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } GROUP BY ?g } . FILTER ( ?t >= 2 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?t ) WHERE { ?g property:diplomatic_relation ?p . ?g rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?g } . FILTER ( ?t >= 2 ) }
[]
political territorial entity political territorial entity
SYSTEM
6
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 2
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?t ) WHERE { ?g property:P530 ?p . ?g rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } GROUP BY ?g } . FILTER ( ?t >= 2 ) }
Austria Germany Australia Denmark Canada New Zealand
6
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?t ) WHERE { ?g property:diplomatic_relation ?p . ?g rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?g } . FILTER ( ?t >= 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with approximately 16 administrative territories or political territories ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 16
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?u ) WHERE { { ?x property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } UNION { ?x property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } } GROUP BY ?z } . FILTER ( ?u = 16 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 16
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?u ) WHERE { { ?x property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } } GROUP BY ?z } . FILTER ( ?u = 16 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
20
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q711 Q252 Q403 Q258 Q43 Q796 Q794 Q347 Q17 Q79 Q1016 Q1011 Q953
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 16
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?u ) WHERE { { ?x property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } UNION { ?x property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } } GROUP BY ?z } . FILTER ( ?u = 16 ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Mongolia Indonesia Serbia South Africa Turkey Iraq Iran Liechtenstein Japan Egypt Libya Cape Verde Zambia
20
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 16
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?u ) WHERE { { ?x property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } } GROUP BY ?z } . FILTER ( ?u = 16 ) }
[]