Simple Question (Direct)
Simple Question
Q1487678
P21
Q290
USER
What is the sex of Enrico Buonocore ?
(Q1487678,P21,c(Q290))
action filter_type
action find
entity Q1487678
relation P21
type Q290
['Q1487678', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1487678 property:P21 ?i . ?i rdf:type ontology:Q290 }
Enrico Buonocore
action filter_type
action find
entity Enrico Buonocore
relation gender
type sex
['Enrico Buonocore', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Enrico_Buonocore property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1487678,P21,c(Q290))
action filter_type
action find
entity Q1487678
relation P21
type Q290
The sex of Enrico Buonocore is the [ANSWER]
['Q1487678', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1487678 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
The sex of Enrico Buonocore is the male
male
action filter_type
action find
entity Enrico Buonocore
relation gender
type sex
['Enrico Buonocore', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Enrico_Buonocore property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P138
Q7946
USER
Which minerals are the eponym of that sex ?
(c(Q7946),P138,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q7946
[{'concept': 'Q7946'}, 'P138', 'Q6581097']
SELECT DISTINCT ?r WHERE { ?r property:P138 resource:Q6581097 . ?r rdf:type ontology:Q7946 }
male
action filter_type
action find_reverse
entity male
relation named after
type mineral
[{'concept': 'mineral'}, 'named after', 'male']
SELECT DISTINCT ?r WHERE { ?r property:named_after resource:male . ?r rdf:type ontology:mineral }
[]
mineral
Q19861020 Q19861231 Q4006570
SYSTEM
mendeleevite-(Ce), reynoldsite, urusovite
Q19861020 Q18375263 Q19862060 Q19861231 Q4006570 Q3565842 Q19833301
(c(Q7946),P138,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q7946
[ANSWERS] are the eponym of that sex
[{'concept': 'Q7946'}, 'P138', 'Q6581097']
SELECT DISTINCT ?r WHERE { ?r property:P138 resource:Q6581097 . ?r rdf:type ontology:Q7946 }
mendeleevite-(Ce) billwiseite witzkeite reynoldsite urusovite zirkelite carlosbarbosaite
Mendeleevite-(Ce), reynoldsite and urusovite are the eponym of that sex
mendeleevite-(Ce) reynoldsite urusovite
action filter_type
action find_reverse
entity male
relation named after
type mineral
[{'concept': 'mineral'}, 'named after', 'male']
SELECT DISTINCT ?r WHERE { ?r property:named_after resource:male . ?r rdf:type ontology:mineral }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P138
Q15617994 Q7946
USER
Which administrative territories are namesakes of around 1 mineral ?
(c(Q7946),P138,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q7946
value 1
[{'concept': 'Q7946'}, 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?w ) WHERE { ?r rdf:type ontology:Q7946 . ?b rdf:type ontology:Q15617994 . ?r property:P138 ?b } GROUP BY ?b } . FILTER ( ?w = 1 ) }
action approx
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type mineral
value 1
[{'concept': 'mineral'}, 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?w ) WHERE { ?r rdf:type ontology:mineral . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:named_after ?b } GROUP BY ?b } . FILTER ( ?w = 1 ) }
[]
designation for an administrative territorial entity mineral
Q889 Q794 Q1028
SYSTEM
Afghanistan, Iran, Morocco
Q1028 Q794 Q889 Q221 Q81740 Q1948 Q10312 Q854 Q2139159 Q645340
(c(Q7946),P138,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q7946
value 1
[ANSWERS] are namesakes of around 1 mineral
[{'concept': 'Q7946'}, 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?w ) WHERE { ?r rdf:type ontology:Q7946 . ?b rdf:type ontology:Q15617994 . ?r property:P138 ?b } GROUP BY ?b } . FILTER ( ?w = 1 ) }
Morocco Iran Afghanistan Republic of Macedonia Lauta Manitoba Tavagnasco Sri Lanka Reichenbach Brenk
Afghanistan, Iran and Morocco are namesakes of around 1 mineral
Afghanistan Iran Morocco
action approx
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type mineral
value 1
[{'concept': 'mineral'}, 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?w ) WHERE { ?r rdf:type ontology:mineral . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:named_after ?b } GROUP BY ?b } . FILTER ( ?w = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q95037 Q1487678
P47 P27
Q15617994
USER
Which administrative territories are Enrico Buonocore a civilian of or are bordered by Serrapetrona ?
OR((Q1487678,P27,c(Q15617994)), (Q95037,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q1487678
relation P27
action find
entity Q95037
relation P47
type Q15617994
{'OR': [['Q1487678', 'P27', {'concept': 'Q15617994'}], ['Q95037', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1487678 property:P27 ?b } UNION { resource:Q95037 property:P47 ?b } } . ?b rdf:type ontology:Q15617994 }
Serrapetrona Enrico Buonocore
action filter_type
action union
action find
entity Enrico Buonocore
relation country of citizenship
action find
entity Serrapetrona
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Enrico Buonocore', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Serrapetrona', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Enrico_Buonocore property:country_of_citizenship ?b } UNION { resource:Serrapetrona property:shares_border_with ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q94978 Q73218 Q94955 Q73552 Q38
SYSTEM
Tolentino, Belforte del Chienti, San Severino Marche, Castelraimondo, Italy
Q94978 Q73218 Q94955 Q73552 Q38
OR((Q1487678,P27,c(Q15617994)), (Q95037,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q1487678
relation P27
action find
entity Q95037
relation P47
type Q15617994
[ANSWERS] are Enrico Buonocore a civilian of or are bordered by Serrapetrona
{'OR': [['Q1487678', 'P27', {'concept': 'Q15617994'}], ['Q95037', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1487678 property:P27 ?b } UNION { resource:Q95037 property:P47 ?b } } . ?b rdf:type ontology:Q15617994 }
Tolentino Belforte del Chienti San Severino Marche Castelraimondo Italy
Tolentino, Belforte del Chienti, San Severino Marche, Castelraimondo and Italy are Enrico Buonocore a civilian of or are bordered by Serrapetrona
Tolentino Belforte del Chienti San Severino Marche Castelraimondo Italy
action filter_type
action union
action find
entity Enrico Buonocore
relation country of citizenship
action find
entity Serrapetrona
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Enrico Buonocore', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Serrapetrona', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Enrico_Buonocore property:country_of_citizenship ?b } UNION { resource:Serrapetrona property:shares_border_with ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q22676587 Q1307214 Q15617994
USER
How many administrative territories have around 1 monarchic systems and forms of government as government ?
(c(Q15617994),P122,c(Q22676587)|c(Q1307214))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
value 1
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?w ) WHERE { { ?j rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q22676587 . ?j property:P122 ?i } UNION { ?j property:P122 ?i . ?i rdf:type ontology:Q1307214 . ?j rdf:type ontology:Q15617994 } } GROUP BY ?j } . FILTER ( ?w = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?w ) WHERE { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:monarchic_system . ?j property:basic_form_of_government ?i } UNION { ?j property:basic_form_of_government ?i . ?i rdf:type ontology:form_of_government . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?j } . FILTER ( ?w = 1 ) }
[]
monarchic system form of government designation for an administrative territorial entity
SYSTEM
13
Q154547 Q165116 Q833 Q208500 Q794 Q889 Q32 Q423 Q280312 Q347 Q17 Q199688 Q878
(c(Q15617994),P122,c(Q22676587)|c(Q1307214))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?w ) WHERE { { ?j rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q22676587 . ?j property:P122 ?i } UNION { ?j property:P122 ?i . ?i rdf:type ontology:Q1307214 . ?j rdf:type ontology:Q15617994 } } GROUP BY ?j } . FILTER ( ?w = 1 ) }
duchy grand duchy Malaysia principality Iran Afghanistan Luxembourg North Korea Principality of Lüneburg Liechtenstein Japan Almohad United Arab Emirates
13
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?w ) WHERE { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:monarchic_system . ?j property:basic_form_of_government ?i } UNION { ?j property:basic_form_of_government ?i . ?i rdf:type ontology:form_of_government . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?j } . FILTER ( ?w = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q95037
P17
Q15617994
USER
Which administrative territory is Serrapetrona a part of ?
(Q95037,P17,c(Q15617994))
action filter_type
action find
entity Q95037
relation P17
type Q15617994
['Q95037', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q95037 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Serrapetrona
action filter_type
action find
entity Serrapetrona
relation country
type designation for an administrative territorial entity
['Serrapetrona', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Serrapetrona property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q95037,P17,c(Q15617994))
action filter_type
action find
entity Q95037
relation P17
type Q15617994
Which administrative territory is Serrapetrona a part of
['Q95037', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q95037 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Italy
Which administrative territory is Serrapetrona a part of
Italy
action filter_type
action find
entity Serrapetrona
relation country
type designation for an administrative territorial entity
['Serrapetrona', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Serrapetrona property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q95037
P47
Q56061 Q15617994
USER
How many administrative territories and administrative territories are bordered by Serrapetrona ?
(c(Q56061),P47,Q95037) (c(Q15617994),P47,Q95037)
action count
action union
action filter_type
action find_reverse
entity Q95037
relation P47
type Q56061
action filter_type
action find_reverse
entity Q95037
relation P47
type Q15617994
[{'concept': 'Q56061'}, 'P47', 'Q95037'] [{'concept': 'Q15617994'}, 'P47', 'Q95037']
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { ?z property:P47 resource:Q95037 . ?z rdf:type ontology:Q56061 } UNION { ?z property:P47 resource:Q95037 . ?z rdf:type ontology:Q15617994 } }
Serrapetrona
action count
action union
action filter_type
action find_reverse
entity Serrapetrona
relation shares border with
type administrative territorial entity
action filter_type
action find_reverse
entity Serrapetrona
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Serrapetrona'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Serrapetrona']
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { ?z property:shares_border_with resource:Serrapetrona . ?z rdf:type ontology:administrative_territorial_entity } UNION { ?z property:shares_border_with resource:Serrapetrona . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
administrative territorial entity designation for an administrative territorial entity
SYSTEM
6
Q73218 Q94955 Q73552 Q73489 Q94978 Q73450
(c(Q56061),P47,Q95037) (c(Q15617994),P47,Q95037)
action count
action union
action filter_type
action find_reverse
entity Q95037
relation P47
type Q56061
action filter_type
action find_reverse
entity Q95037
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q56061'}, 'P47', 'Q95037'] [{'concept': 'Q15617994'}, 'P47', 'Q95037']
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { ?z property:P47 resource:Q95037 . ?z rdf:type ontology:Q56061 } UNION { ?z property:P47 resource:Q95037 . ?z rdf:type ontology:Q15617994 } }
Belforte del Chienti San Severino Marche Castelraimondo Camerino Tolentino Caldarola
6
action count
action union
action filter_type
action find_reverse
entity Serrapetrona
relation shares border with
type administrative territorial entity
action filter_type
action find_reverse
entity Serrapetrona
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Serrapetrona'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Serrapetrona']
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { ?z property:shares_border_with resource:Serrapetrona . ?z rdf:type ontology:administrative_territorial_entity } UNION { ?z property:shares_border_with resource:Serrapetrona . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q685
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with approximately the same number of administrative territories as Solomon Islands ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 . ?f property:P530 ?a } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { resource:Q685 property:P530 ?p . ?p rdf:type ontology:Q1048835 } } . FILTER ( ?l = ?c ) }
Solomon Islands
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity . ?f property:diplomatic_relation ?a } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity } } . FILTER ( ?l = ?c ) }
[]
designation for an administrative 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))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with approximately the same number of administrative territories as Solomon Islands
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 . ?f property:P530 ?a } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { resource:Q685 property:P530 ?p . ?p rdf:type ontology:Q1048835 } } . FILTER ( ?l = ?c ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relations with approximately the same number of administrative territories as Solomon Islands
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity . ?f property:diplomatic_relation ?a } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity } } . FILTER ( ?l = ?c ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q769
P530
Q15617994 Q1048835
USER
And also tell me about Grenada?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?s ) WHERE { ?d property:P530 ?w . ?d rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Q769 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?s = ?p ) }
Grenada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?s ) WHERE { ?d property:diplomatic_relation ?w . ?d rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Grenada property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?s = ?p ) }
[]
designation for an administrative 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))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?s ) WHERE { ?d property:P530 ?w . ?d rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Q769 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?s = ?p ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?s ) WHERE { ?d property:diplomatic_relation ?w . ?d rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Grenada property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?s = ?p ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Are Germany known to have diplomatic connections with those ones ?
(Q183,P530,Q35) (Q183,P530,Q16) (Q183,P530,Q40)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q35'] ['Q183', 'P530', 'Q16'] ['Q183', 'P530', 'Q40']
ASK WHERE { resource:Q183 property:P530 ?f . VALUES ( ?f ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Denmark'] ['Germany', 'diplomatic relation', 'Canada'] ['Germany', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Germany property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q35) (Q183,P530,Q16) (Q183,P530,Q40)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q35'] ['Q183', 'P530', 'Q16'] ['Q183', 'P530', 'Q40']
ASK WHERE { resource:Q183 property:P530 ?f . VALUES ( ?f ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Denmark'] ['Germany', 'diplomatic relation', 'Canada'] ['Germany', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Germany property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q794
P706
Q151885
USER
What is located in Iran ?
(c(Q151885),P706,Q794)
action filter_type
action find_reverse
entity Q794
relation P706
type Q151885
[{'concept': 'Q151885'}, 'P706', 'Q794']
SELECT DISTINCT ?t WHERE { ?t property:P706 resource:Q794 . ?t rdf:type ontology:Q151885 }
Iran
action filter_type
action find_reverse
entity Iran
relation located on terrain feature
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Iran']
SELECT DISTINCT ?t WHERE { ?t property:located_on_terrain_feature resource:Iran . ?t rdf:type ontology:concept }
[]
concept
Q647858
SYSTEM
Zarzian culture
Q647858
(c(Q151885),P706,Q794)
action filter_type
action find_reverse
entity Q794
relation P706
type Q151885
[ANSWER] is located in Iran
[{'concept': 'Q151885'}, 'P706', 'Q794']
SELECT DISTINCT ?t WHERE { ?t property:P706 resource:Q794 . ?t rdf:type ontology:Q151885 }
Zarzian culture
Zarzian culture is located in Iran
Zarzian culture
action filter_type
action find_reverse
entity Iran
relation located on terrain feature
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Iran']
SELECT DISTINCT ?t WHERE { ?t property:located_on_terrain_feature resource:Iran . ?t rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q794
P137
Q3084961
USER
Which product linings are the administrator of Iran ?
(c(Q3084961),P137,Q794)
action filter_type
action find_reverse
entity Q794
relation P137
type Q3084961
[{'concept': 'Q3084961'}, 'P137', 'Q794']
SELECT DISTINCT ?j WHERE { ?j property:P137 resource:Q794 . ?j rdf:type ontology:Q3084961 }
Iran
action filter_type
action find_reverse
entity Iran
relation operator
type product lining
[{'concept': 'product lining'}, 'operator', 'Iran']
SELECT DISTINCT ?j WHERE { ?j property:operator resource:Iran . ?j rdf:type ontology:product_lining }
[]
product lining
Q142549 Q933767
SYSTEM
Il-76, Hawk 75
Q142549 Q933767
(c(Q3084961),P137,Q794)
action filter_type
action find_reverse
entity Q794
relation P137
type Q3084961
[ANSWERS] are the administrator of Iran
[{'concept': 'Q3084961'}, 'P137', 'Q794']
SELECT DISTINCT ?j WHERE { ?j property:P137 resource:Q794 . ?j rdf:type ontology:Q3084961 }
Il-76 Hawk 75
Il-76 and Hawk 75 are the administrator of Iran
Il-76 Hawk 75
action filter_type
action find_reverse
entity Iran
relation operator
type product lining
[{'concept': 'product lining'}, 'operator', 'Iran']
SELECT DISTINCT ?j WHERE { ?j property:operator resource:Iran . ?j rdf:type ontology:product_lining }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q142549 Q933767
P137
Q15617994
USER
Which administrative territories are the facility operator of Il-76 and Hawk 75 ?
(Q142549,P137,c(Q15617994)) (Q933767,P137,c(Q15617994))
action union
action filter_type
action find
entity Q142549
relation P137
type Q15617994
action filter_type
action find
entity Q933767
relation P137
type Q15617994
['Q142549', 'P137', {'concept': 'Q15617994'}] ['Q933767', 'P137', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?m property:P137 ?j . VALUES ( ?m ) { ( resource:Q142549 ) ( resource:Q933767 ) } }
Il-76 Hawk 75
action union
action filter_type
action find
entity Il-76
relation operator
type designation for an administrative territorial entity
action filter_type
action find
entity Hawk 75
relation operator
type designation for an administrative territorial entity
['Il-76', 'operator', {'concept': 'designation for an administrative territorial entity'}] ['Hawk 75', 'operator', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?m property:operator ?j . VALUES ( ?m ) { ( resource:Il-76 ) ( resource:Hawk_75 ) } }
[]
designation for an administrative territorial entity
Q155 Q30 Q159
SYSTEM
Brazil, United States of America, Russia
Q212 Q805 Q159 Q843 Q184 Q265 Q794 Q1016 Q399 Q668 Q148 Q1049 Q916 Q142 Q20 Q45 Q55 Q145 Q155 Q794 Q33 Q419 Q30 Q668 Q869 Q414
(Q142549,P137,c(Q15617994)) (Q933767,P137,c(Q15617994))
action union
action filter_type
action find
entity Q142549
relation P137
type Q15617994
action filter_type
action find
entity Q933767
relation P137
type Q15617994
[ANSWERS] are the facility operator of Il-76 and Hawk 75
['Q142549', 'P137', {'concept': 'Q15617994'}] ['Q933767', 'P137', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?m property:P137 ?j . VALUES ( ?m ) { ( resource:Q142549 ) ( resource:Q933767 ) } }
Ukraine Yemen Russia Pakistan Belarus Uzbekistan Iran Libya Armenia India People's Republic of China Sudan Angola France Norway Portugal Netherlands United Kingdom Brazil Iran Finland Peru United States of America India Thailand Argentina
Brazil, United States of America and Russia are the facility operator of Il-76 and Hawk 75
Brazil United States of America Russia
action union
action filter_type
action find
entity Il-76
relation operator
type designation for an administrative territorial entity
action filter_type
action find
entity Hawk 75
relation operator
type designation for an administrative territorial entity
['Il-76', 'operator', {'concept': 'designation for an administrative territorial entity'}] ['Hawk 75', 'operator', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?m property:operator ?j . VALUES ( ?m ) { ( resource:Il-76 ) ( resource:Hawk_75 ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q155 Q30 Q159
P17
Q15617994
USER
Which administrative territories are Brazil, United States of America and Russia present in ?
(Q155,P17,c(Q15617994)) (Q30,P17,c(Q15617994)) (Q159,P17,c(Q15617994))
action union
action filter_type
action find
entity Q155
relation P17
type Q15617994
action filter_type
action find
entity Q30
relation P17
type Q15617994
action filter_type
action find
entity Q159
relation P17
type Q15617994
['Q155', 'P17', {'concept': 'Q15617994'}] ['Q30', 'P17', {'concept': 'Q15617994'}] ['Q159', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?h ) { ( resource:Q155 ) ( resource:Q30 ) } . ?h property:P17 ?v }
Brazil United States of America Russia
action union
action filter_type
action find
entity Brazil
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity United States of America
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Russia
relation country
type designation for an administrative territorial entity
['Brazil', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Russia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?h ) { ( resource:Brazil ) ( resource:United_States_of_America ) } . ?h property:country ?v }
[]
designation for an administrative territorial entity
Q155 Q30 Q159
SYSTEM
Brazil, United States of America, Russia
Q155 Q30 Q159
(Q155,P17,c(Q15617994)) (Q30,P17,c(Q15617994)) (Q159,P17,c(Q15617994))
action union
action filter_type
action find
entity Q155
relation P17
type Q15617994
action filter_type
action find
entity Q30
relation P17
type Q15617994
action filter_type
action find
entity Q159
relation P17
type Q15617994
Which administrative territories are [ANSWERS] present in
['Q155', 'P17', {'concept': 'Q15617994'}] ['Q30', 'P17', {'concept': 'Q15617994'}] ['Q159', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?h ) { ( resource:Q155 ) ( resource:Q30 ) } . ?h property:P17 ?v }
Brazil United States of America Russia
Which administrative territories are Brazil, United States of America and Russia present in
Brazil United States of America Russia
action union
action filter_type
action find
entity Brazil
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity United States of America
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Russia
relation country
type designation for an administrative territorial entity
['Brazil', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Russia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?h ) { ( resource:Brazil ) ( resource:United_States_of_America ) } . ?h property:country ?v }
[]