Simple Question (Direct)
Simple Question
Q15958353
P641
Q349
USER
Which sport was Jaroslava Pencová a part of ?
(Q15958353,P641,c(Q349))
action filter_type
action find
entity Q15958353
relation P641
type Q349
['Q15958353', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q15958353 property:P641 ?k . ?k rdf:type ontology:Q349 }
Jaroslava Pencová
action filter_type
action find
entity Jaroslava Pencová
relation sport
type sport
['Jaroslava Pencová', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Jaroslava_Pencová property:sport ?k . ?k rdf:type ontology:sport }
[]
sport
Q1734
SYSTEM
volleyball
Q1734
(Q15958353,P641,c(Q349))
action filter_type
action find
entity Q15958353
relation P641
type Q349
[ANSWER] was Jaroslava Pencová a part of
['Q15958353', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q15958353 property:P641 ?k . ?k rdf:type ontology:Q349 }
volleyball
Volleyball was Jaroslava Pencová a part of
volleyball
action filter_type
action find
entity Jaroslava Pencová
relation sport
type sport
['Jaroslava Pencová', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Jaroslava_Pencová property:sport ?k . ?k rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1734 Q2299440
P641
Q502895
USER
Is Solveig Wegener involved in playing that sport ?
(Q2299440,P641,Q1734)
action is_in
entity Q2299440
action find
entity Q1734
relation P641
['Q2299440', 'P641', 'Q1734']
ASK WHERE { resource:Q1734 property:P641 resource:Q2299440 }
volleyball Solveig Wegener
action is_in
entity Solveig Wegener
action find
entity volleyball
relation sport
['Solveig Wegener', 'sport', 'volleyball']
ASK WHERE { resource:volleyball property:sport resource:Solveig_Wegener }
[]
common name
SYSTEM
NO
(Q2299440,P641,Q1734)
action is_in
entity Q2299440
action find
entity Q1734
relation P641
[ANSWER]
['Q2299440', 'P641', 'Q1734']
ASK WHERE { resource:Q1734 property:P641 resource:Q2299440 }
No
action is_in
entity Solveig Wegener
action find
entity volleyball
relation sport
['Solveig Wegener', 'sport', 'volleyball']
ASK WHERE { resource:volleyball property:sport resource:Solveig_Wegener }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q178933
P1303
Q34379 Q502895
USER
How many musical instruments can approximately the same number of people perform with as Hardanger fiddle ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q178933
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?p ) WHERE { ?y rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 . ?w property:P1303 ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u rdf:type ontology:Q34379 . resource:Q178933 property:P1303 ?u } } . FILTER ( ?p = ?i ) }
Hardanger fiddle
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Hardanger fiddle
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?p ) WHERE { ?y rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name . ?w property:instrument ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u rdf:type ontology:musical_instrument . resource:Hardanger_fiddle property:instrument ?u } } . FILTER ( ?p = ?i ) }
[]
musical instrument common name
SYSTEM
60
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 count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q178933
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?p ) WHERE { ?y rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 . ?w property:P1303 ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u rdf:type ontology:Q34379 . resource:Q178933 property:P1303 ?u } } . FILTER ( ?p = ?i ) }
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
60
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Hardanger fiddle
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?p ) WHERE { ?y rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name . ?w property:instrument ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u rdf:type ontology:musical_instrument . resource:Hardanger_fiddle property:instrument ?u } } . FILTER ( ?p = ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q81982
P1303
Q34379 Q502895
USER
And what about harpsichord?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q81982
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?d ) WHERE { ?s property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { resource:Q81982 property:P1303 ?a . ?a rdf:type ontology:Q34379 } } . FILTER ( ?d = ?c ) }
harpsichord
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity harpsichord
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?d ) WHERE { ?s property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { resource:harpsichord property:instrument ?a . ?a rdf:type ontology:musical_instrument } } . FILTER ( ?d = ?c ) }
[]
musical instrument common name
SYSTEM
61
Q80284 Q46185 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 count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q81982
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?d ) WHERE { ?s property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { resource:Q81982 property:P1303 ?a . ?a rdf:type ontology:Q34379 } } . FILTER ( ?d = ?c ) }
viola bass guitar 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
61
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity harpsichord
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?d ) WHERE { ?s property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { resource:harpsichord property:instrument ?a . ?a rdf:type ontology:musical_instrument } } . FILTER ( ?d = ?c ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q27312506 Q2299440
P27
Q1048835
USER
Which political territories are Solveig Wegener or Grégory Ngbwa Mintsa a civilian of ?
OR((Q2299440,P27,c(Q1048835)), (Q27312506,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q2299440
relation P27
action find
entity Q27312506
relation P27
type Q1048835
{'OR': [['Q2299440', 'P27', {'concept': 'Q1048835'}], ['Q27312506', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1048835 . { ?d property:P27 ?e . VALUES ( ?d ) { ( resource:Q27312506 ) ( resource:Q2299440 ) } } }
Grégory Ngbwa Mintsa Solveig Wegener
action filter_type
action union
action find
entity Solveig Wegener
relation country of citizenship
action find
entity Grégory Ngbwa Mintsa
relation country of citizenship
type political territorial entity
{'OR': [['Solveig Wegener', 'country of citizenship', {'concept': 'political territorial entity'}], ['Grégory Ngbwa Mintsa', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:political_territorial_entity . { ?d property:country_of_citizenship ?e . VALUES ( ?d ) { ( resource:Grégory_Ngbwa_Mintsa ) ( resource:Solveig_Wegener ) } } }
[]
political territorial entity
Q1000 Q183
SYSTEM
Gabon, Germany
Q1000 Q183
OR((Q2299440,P27,c(Q1048835)), (Q27312506,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q2299440
relation P27
action find
entity Q27312506
relation P27
type Q1048835
[ANSWERS] are Solveig Wegener or Grégory Ngbwa Mintsa a civilian of
{'OR': [['Q2299440', 'P27', {'concept': 'Q1048835'}], ['Q27312506', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1048835 . { ?d property:P27 ?e . VALUES ( ?d ) { ( resource:Q27312506 ) ( resource:Q2299440 ) } } }
Gabon Germany
Gabon and Germany are Solveig Wegener or Grégory Ngbwa Mintsa a civilian of
Gabon Germany
action filter_type
action union
action find
entity Solveig Wegener
relation country of citizenship
action find
entity Grégory Ngbwa Mintsa
relation country of citizenship
type political territorial entity
{'OR': [['Solveig Wegener', 'country of citizenship', {'concept': 'political territorial entity'}], ['Grégory Ngbwa Mintsa', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:political_territorial_entity . { ?d property:country_of_citizenship ?e . VALUES ( ?d ) { ( resource:Grégory_Ngbwa_Mintsa ) ( resource:Solveig_Wegener ) } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q515 Q7275
USER
How many cities and states have diplomatic relationships with that political territory ?
(Q183,P530,c(Q515)) (Q183,P530,c(Q7275)) (Q1000,P530,c(Q515)) (Q1000,P530,c(Q7275)) (Q183,P530,c(Q515)) (Q183,P530,c(Q7275))
['Q183', 'P530', {'concept': 'Q515'}] ['Q183', 'P530', {'concept': 'Q7275'}] ['Q1000', 'P530', {'concept': 'Q515'}] ['Q1000', 'P530', {'concept': 'Q7275'}] ['Q183', 'P530', {'concept': 'Q515'}] ['Q183', 'P530', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q423030 property:P530 ?z } UNION { resource:Q423030 property:P530 ?y } UNION { resource:Q1241571 property:P530 ?z } UNION { resource:Q1241571 property:P530 ?y } UNION { resource:Q423030 property:P530 ?z } UNION { resource:Q423030 property:P530 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q7275 }
['Germany', 'diplomatic relation', {'concept': 'city'}] ['Germany', 'diplomatic relation', {'concept': 'state'}] ['Gabon', 'diplomatic relation', {'concept': 'city'}] ['Gabon', 'diplomatic relation', {'concept': 'state'}] ['Germany', 'diplomatic relation', {'concept': 'city'}] ['Germany', 'diplomatic relation', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Germany property:diplomatic_relation ?z } UNION { resource:Germany property:diplomatic_relation ?y } UNION { resource:Gabon property:diplomatic_relation ?z } UNION { resource:Gabon property:diplomatic_relation ?y } UNION { resource:Germany property:diplomatic_relation ?z } UNION { resource:Germany property:diplomatic_relation ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:state }
[]
city state
Quantitative|Count|Mult. entity type|Clarification
Q183
SYSTEM
Did you mean Germany ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q423030 property:P530 ?z } UNION { resource:Q423030 property:P530 ?y } UNION { resource:Q1241571 property:P530 ?z } UNION { resource:Q1241571 property:P530 ?y } UNION { resource:Q423030 property:P530 ?z } UNION { resource:Q423030 property:P530 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q7275 }
Did you mean Germany ?
Germany
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Germany property:diplomatic_relation ?z } UNION { resource:Germany property:diplomatic_relation ?y } UNION { resource:Gabon property:diplomatic_relation ?z } UNION { resource:Gabon property:diplomatic_relation ?y } UNION { resource:Germany property:diplomatic_relation ?z } UNION { resource:Germany property:diplomatic_relation ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:state }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q183,P530,c(Q515)) (Q183,P530,c(Q7275)) (Q1000,P530,c(Q515)) (Q1000,P530,c(Q7275)) (Q183,P530,c(Q515)) (Q183,P530,c(Q7275))
['Q183', 'P530', {'concept': 'Q515'}] ['Q183', 'P530', {'concept': 'Q7275'}] ['Q1000', 'P530', {'concept': 'Q515'}] ['Q1000', 'P530', {'concept': 'Q7275'}] ['Q183', 'P530', {'concept': 'Q515'}] ['Q183', 'P530', {'concept': 'Q7275'}]
['Germany', 'diplomatic relation', {'concept': 'city'}] ['Germany', 'diplomatic relation', {'concept': 'state'}] ['Gabon', 'diplomatic relation', {'concept': 'city'}] ['Gabon', 'diplomatic relation', {'concept': 'state'}] ['Germany', 'diplomatic relation', {'concept': 'city'}] ['Germany', 'diplomatic relation', {'concept': 'state'}]
[]
SYSTEM
1 cities and 1 states
Q235 Q16957
(Q183,P530,c(Q515)) (Q183,P530,c(Q7275)) (Q1000,P530,c(Q515)) (Q1000,P530,c(Q7275)) (Q183,P530,c(Q515)) (Q183,P530,c(Q7275))
[ANSWER]
['Q183', 'P530', {'concept': 'Q515'}] ['Q183', 'P530', {'concept': 'Q7275'}] ['Q1000', 'P530', {'concept': 'Q515'}] ['Q1000', 'P530', {'concept': 'Q7275'}] ['Q183', 'P530', {'concept': 'Q515'}] ['Q183', 'P530', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q423030 property:P530 ?z } UNION { resource:Q423030 property:P530 ?y } UNION { resource:Q1241571 property:P530 ?z } UNION { resource:Q1241571 property:P530 ?y } UNION { resource:Q423030 property:P530 ?z } UNION { resource:Q423030 property:P530 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q7275 }
Monaco East Germany
1 cities and 1 states
['Germany', 'diplomatic relation', {'concept': 'city'}] ['Germany', 'diplomatic relation', {'concept': 'state'}] ['Gabon', 'diplomatic relation', {'concept': 'city'}] ['Gabon', 'diplomatic relation', {'concept': 'state'}] ['Germany', 'diplomatic relation', {'concept': 'city'}] ['Germany', 'diplomatic relation', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Germany property:diplomatic_relation ?z } UNION { resource:Germany property:diplomatic_relation ?y } UNION { resource:Gabon property:diplomatic_relation ?z } UNION { resource:Gabon property:diplomatic_relation ?y } UNION { resource:Germany property:diplomatic_relation ?z } UNION { resource:Germany property:diplomatic_relation ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:state }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q33788
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with lesser number of political territories than New Caledonia ?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q33788
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?u ) WHERE { ?k property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?u < ?w ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Q33788 property:P530 ?i . ?i rdf:type ontology:Q1048835 } } }
New Caledonia
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity New Caledonia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?u ) WHERE { ?k property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?u < ?w ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:New_Caledonia property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
12
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q33788
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?u ) WHERE { ?k property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?u < ?w ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Q33788 property:P530 ?i . ?i rdf:type ontology:Q1048835 } } }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
12
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity New Caledonia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?u ) WHERE { ?k property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?u < ?w ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:New_Caledonia property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q889
P530
Q15617994 Q1048835
USER
And how about Afghanistan?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q889
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:P530 ?w . ?u rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Q889 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?v < ?p ) }
Afghanistan
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Afghanistan
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 ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:diplomatic_relation ?w . ?u rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Afghanistan property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v < ?p ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
84
Q702 Q805 Q262 Q784 Q265 Q37 Q712 Q710 Q717 Q837 Q399 Q398 Q657 Q792 Q790 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 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 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q858 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q889
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:P530 ?w . ?u rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Q889 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?v < ?p ) }
Federated States of Micronesia Yemen Algeria Dominica Uzbekistan Lithuania Fiji Kiribati Venezuela Nepal Armenia Bahrain Chad El Salvador Haiti South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Oman 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 Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Syria Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
84
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Afghanistan
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 ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:diplomatic_relation ?w . ?u rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Afghanistan property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v < ?p ) }
[]
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 atmost 1 political territory ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?z ) WHERE { ?j property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?p } . FILTER ( ?z <= 1 ) }
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?z ) WHERE { ?j property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?p } . FILTER ( ?z <= 1 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
84
Q702 Q805 Q262 Q784 Q265 Q37 Q712 Q710 Q717 Q837 Q399 Q398 Q657 Q792 Q790 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 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 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q858 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?z ) WHERE { ?j property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?p } . FILTER ( ?z <= 1 ) }
Federated States of Micronesia Yemen Algeria Dominica Uzbekistan Lithuania Fiji Kiribati Venezuela Nepal Armenia Bahrain Chad El Salvador Haiti South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Oman 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 Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Syria Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
84
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?z ) WHERE { ?j property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?p } . FILTER ( ?z <= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q16150196
P194
Q1752346
USER
How many assemblies represent Germany or Donetsk People's Republic ?
(Q183,P194,c(Q1752346)) (Q16150196,P194,c(Q1752346))
action count
action union
action filter_type
action find
entity Q183
relation P194
type Q1752346
action filter_type
action find
entity Q16150196
relation P194
type Q1752346
['Q183', 'P194', {'concept': 'Q1752346'}] ['Q16150196', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { resource:Q183 property:P194 ?g . ?g rdf:type ontology:Q1752346 } UNION { resource:Q16150196 property:P194 ?g . ?g rdf:type ontology:Q1752346 } }
Germany Donetsk People's Republic
action count
action union
action filter_type
action find
entity Germany
relation legislative body
type assembly
action filter_type
action find
entity Donetsk People's Republic
relation legislative body
type assembly
['Germany', 'legislative body', {'concept': 'assembly'}] ["Donetsk People's Republic", 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { resource:Germany property:legislative_body ?g . ?g rdf:type ontology:assembly } UNION { resource:Donetsk_People's_Republic property:legislative_body ?g . ?g rdf:type ontology:assembly } }
[]
assembly
SYSTEM
2
Q18510957 Q154797
(Q183,P194,c(Q1752346)) (Q16150196,P194,c(Q1752346))
action count
action union
action filter_type
action find
entity Q183
relation P194
type Q1752346
action filter_type
action find
entity Q16150196
relation P194
type Q1752346
[ANSWER]
['Q183', 'P194', {'concept': 'Q1752346'}] ['Q16150196', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { resource:Q183 property:P194 ?g . ?g rdf:type ontology:Q1752346 } UNION { resource:Q16150196 property:P194 ?g . ?g rdf:type ontology:Q1752346 } }
Supreme Soviet of the Donetsk People's Republic Bundestag of Germany
2
action count
action union
action filter_type
action find
entity Germany
relation legislative body
type assembly
action filter_type
action find
entity Donetsk People's Republic
relation legislative body
type assembly
['Germany', 'legislative body', {'concept': 'assembly'}] ["Donetsk People's Republic", 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { resource:Germany property:legislative_body ?g . ?g rdf:type ontology:assembly } UNION { resource:Donetsk_People's_Republic property:legislative_body ?g . ?g rdf:type ontology:assembly } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5994
P136
Q502895
USER
Which person has piano as genre ?
(c(Q502895),P136,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q5994']
SELECT DISTINCT ?y WHERE { ?y property:P136 resource:Q5994 . ?y rdf:type ontology:Q502895 }
piano
action filter_type
action find_reverse
entity piano
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'piano']
SELECT DISTINCT ?y WHERE { ?y property:genre resource:piano . ?y rdf:type ontology:common_name }
[]
common name
Q27667428
SYSTEM
ONSOHO
Q27667428
(c(Q502895),P136,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P136
type Q502895
[ANSWER] has piano as genre
[{'concept': 'Q502895'}, 'P136', 'Q5994']
SELECT DISTINCT ?y WHERE { ?y property:P136 resource:Q5994 . ?y rdf:type ontology:Q502895 }
ONSOHO
ONSOHO has piano as genre
ONSOHO
action filter_type
action find_reverse
entity piano
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'piano']
SELECT DISTINCT ?y WHERE { ?y property:genre resource:piano . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5994
P61
Q502895
USER
Who discovered or invented piano ?
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q5994 property:P61 ?t . ?t rdf:type ontology:Q502895 }
piano
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:piano property:discoverer_or_inventor ?t . ?t rdf:type ontology:common_name }
[]
common name
Q301597
SYSTEM
Bartolomeo Cristofori
Q301597
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
[ANSWER] discovered or invented piano
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q5994 property:P61 ?t . ?t rdf:type ontology:Q502895 }
Bartolomeo Cristofori
Bartolomeo Cristofori discovered or invented piano
Bartolomeo Cristofori
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:piano property:discoverer_or_inventor ?t . ?t rdf:type ontology:common_name }
[]