Simple Question (Direct)
Simple Question
Q1655654
P264
Q334453
USER
Which division is the record brand of Ian Tyson ?
(Q1655654,P264,c(Q334453))
action filter_type
action find
entity Q1655654
relation P264
type Q334453
['Q1655654', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?l WHERE { resource:Q1655654 property:P264 ?l . ?l rdf:type ontology:Q334453 }
Ian Tyson
action filter_type
action find
entity Ian Tyson
relation record label
type division
['Ian Tyson', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?l WHERE { resource:Ian_Tyson property:record_label ?l . ?l rdf:type ontology:division }
[]
division
Q1424245
SYSTEM
Stony Plain Records
Q1424245
(Q1655654,P264,c(Q334453))
action filter_type
action find
entity Q1655654
relation P264
type Q334453
[ANSWER] is the record brand of Ian Tyson
['Q1655654', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?l WHERE { resource:Q1655654 property:P264 ?l . ?l rdf:type ontology:Q334453 }
Stony Plain Records
Stony Plain Records is the record brand of Ian Tyson
Stony Plain Records
action filter_type
action find
entity Ian Tyson
relation record label
type division
['Ian Tyson', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?l WHERE { resource:Ian_Tyson property:record_label ?l . ?l rdf:type ontology:division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1655654
P21
Q290
USER
What is the sex of that person ?
(Q1424245,P21,c(Q290))
action filter_type
action find
entity Q1655654
relation P21
type Q290
['Q1424245', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q1655654 property:P21 ?c . ?c rdf:type ontology:Q290 }
Ian Tyson
action filter_type
action find
entity Ian Tyson
relation gender
type sex
['Stony Plain Records', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Ian_Tyson property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1424245,P21,c(Q290))
action filter_type
action find
entity Q1655654
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q1424245', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q1655654 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Ian Tyson
relation gender
type sex
['Stony Plain Records', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Ian_Tyson property:gender ?c . ?c rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1655654
P676
Q7725634
USER
Which literary work has its lyrics written by that person ?
(c(Q7725634),P676,Q6581097)
action filter_type
action find_reverse
entity Q1655654
relation P676
type Q7725634
[{'concept': 'Q7725634'}, 'P676', 'Q6581097']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7725634 . ?j property:P676 resource:Q1655654 }
Ian Tyson
action filter_type
action find_reverse
entity Ian Tyson
relation lyrics by
type literary work
[{'concept': 'literary work'}, 'lyrics by', 'male']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:literary_work . ?j property:lyrics_by resource:Ian_Tyson }
[]
literary work
Q2918210
SYSTEM
Four Strong Winds
Q2918210
(c(Q7725634),P676,Q6581097)
action filter_type
action find_reverse
entity Q1655654
relation P676
type Q7725634
[ANSWER] has its lyrics written by that person
[{'concept': 'Q7725634'}, 'P676', 'Q6581097']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7725634 . ?j property:P676 resource:Q1655654 }
Four Strong Winds
Four Strong Winds has its lyrics written by that person
Four Strong Winds
action filter_type
action find_reverse
entity Ian Tyson
relation lyrics by
type literary work
[{'concept': 'literary work'}, 'lyrics by', 'male']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:literary_work . ?j property:lyrics_by resource:Ian_Tyson }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q384426
P1445
Q7725634 Q386724
USER
Which works represents a fictional universe described in less number of literary works than Pirates of the Caribbean ?
(c(Q386724),P1445,c(Q7725634))
action less
action find_tuple_counts
relation P1445
type Q386724
type Q7725634
action count
action filter_type
action find
entity Q384426
relation P1445
type Q7725634
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q7725634'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?q ) WHERE { ?s property:P1445 ?j . ?s rdf:type ontology:Q386724 . ?j rdf:type ontology:Q7725634 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { ?i rdf:type ontology:Q7725634 . resource:Q384426 property:P1445 ?i } } . FILTER ( ?q < ?k ) }
Pirates of the Caribbean
action less
action find_tuple_counts
relation fictional universe described in
type work
type literary work
action count
action filter_type
action find
entity Pirates of the Caribbean
relation fictional universe described in
type literary work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'literary work'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?q ) WHERE { ?s property:fictional_universe_described_in ?j . ?s rdf:type ontology:work . ?j rdf:type ontology:literary_work } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { ?i rdf:type ontology:literary_work . resource:Pirates_of_the_Caribbean property:fictional_universe_described_in ?i } } . FILTER ( ?q < ?k ) }
[]
literary work work
Q1203222 Q15731902 Q11927
SYSTEM
Shrek, Aladdin media franchise, Stargate
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q7725634))
action less
action find_tuple_counts
relation P1445
type Q386724
type Q7725634
action count
action filter_type
action find
entity Q384426
relation P1445
type Q7725634
[ANSWERS] represent a fictional universe described in less number of literary works than Pirates of the Caribbean
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q7725634'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?q ) WHERE { ?s property:P1445 ?j . ?s rdf:type ontology:Q386724 . ?j rdf:type ontology:Q7725634 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { ?i rdf:type ontology:Q7725634 . resource:Q384426 property:P1445 ?i } } . FILTER ( ?q < ?k ) }
Shrek Aladdin media franchise Stargate The Walking Dead
Shrek, Aladdin media franchise and Stargate represent a fictional universe described in less number of literary works than Pirates of the Caribbean
Shrek Aladdin media franchise Stargate
action less
action find_tuple_counts
relation fictional universe described in
type work
type literary work
action count
action filter_type
action find
entity Pirates of the Caribbean
relation fictional universe described in
type literary work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'literary work'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?q ) WHERE { ?s property:fictional_universe_described_in ?j . ?s rdf:type ontology:work . ?j rdf:type ontology:literary_work } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { ?i rdf:type ontology:literary_work . resource:Pirates_of_the_Caribbean property:fictional_universe_described_in ?i } } . FILTER ( ?q < ?k ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P1445
Q838948 Q166142 Q386724
USER
How many works represents a fictional universe described in approximately the same number of works of art and applications as that work ?
(c(Q386724),P1445,c(Q838948)|c(Q166142))
[{'concept': 'Q386724'}, 'P1445', [{'concept': 'Q838948'}, {'concept': 'Q166142'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1445 ?y } UNION { ?z property:P1445 ?x } } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q838948 . ?x rdf:type ontology:Q166142 }
[{'concept': 'work'}, 'fictional universe described in', [{'concept': 'work of art'}, {'concept': 'application'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:fictional_universe_described_in ?y } UNION { ?z property:fictional_universe_described_in ?x } } . ?z rdf:type ontology:work . ?y rdf:type ontology:work_of_art . ?x rdf:type ontology:application }
[]
work of art application work
Comparative|Count over More/Less|Mult. entity type|Clarification
Q11927
SYSTEM
Did you mean Stargate ?
(c(Q386724),P1445,c(Q838948)|c(Q166142))
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', [{'concept': 'Q838948'}, {'concept': 'Q166142'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1445 ?y } UNION { ?z property:P1445 ?x } } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q838948 . ?x rdf:type ontology:Q166142 }
Did you mean Stargate ?
Stargate
[{'concept': 'work'}, 'fictional universe described in', [{'concept': 'work of art'}, {'concept': 'application'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:fictional_universe_described_in ?y } UNION { ?z property:fictional_universe_described_in ?x } } . ?z rdf:type ontology:work . ?y rdf:type ontology:work_of_art . ?x rdf:type ontology:application }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q386724),P1445,c(Q838948)|c(Q166142))
[{'concept': 'Q386724'}, 'P1445', [{'concept': 'Q838948'}, {'concept': 'Q166142'}]]
[{'concept': 'work'}, 'fictional universe described in', [{'concept': 'work of art'}, {'concept': 'application'}]]
[]
SYSTEM
2
Q1203222 Q384426
(c(Q386724),P1445,c(Q838948)|c(Q166142))
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', [{'concept': 'Q838948'}, {'concept': 'Q166142'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1445 ?y } UNION { ?z property:P1445 ?x } } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q838948 . ?x rdf:type ontology:Q166142 }
Shrek Pirates of the Caribbean
2
[{'concept': 'work'}, 'fictional universe described in', [{'concept': 'work of art'}, {'concept': 'application'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:fictional_universe_described_in ?y } UNION { ?z property:fictional_universe_described_in ?x } } . ?z rdf:type ontology:work . ?y rdf:type ontology:work_of_art . ?x rdf:type ontology:application }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2918210
P175
Q2088357
USER
Which musical ensemble was performed by Four Strong Winds ?
(Q2918210,P175,c(Q2088357))
action filter_type
action find
entity Q2918210
relation P175
type Q2088357
['Q2918210', 'P175', {'concept': 'Q2088357'}]
SELECT DISTINCT ?q WHERE { resource:Q2918210 property:P175 ?q . ?q rdf:type ontology:Q2088357 }
Four Strong Winds
action filter_type
action find
entity Four Strong Winds
relation performer
type musical ensemble
['Four Strong Winds', 'performer', {'concept': 'musical ensemble'}]
SELECT DISTINCT ?q WHERE { resource:Four_Strong_Winds property:performer ?q . ?q rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q1655684
SYSTEM
Ian & Sylvia
Q1655684
(Q2918210,P175,c(Q2088357))
action filter_type
action find
entity Q2918210
relation P175
type Q2088357
The [ANSWER] was performed by Four Strong Winds
['Q2918210', 'P175', {'concept': 'Q2088357'}]
SELECT DISTINCT ?q WHERE { resource:Q2918210 property:P175 ?q . ?q rdf:type ontology:Q2088357 }
Ian & Sylvia
The Ian & Sylvia was performed by Four Strong Winds
Ian & Sylvia
action filter_type
action find
entity Four Strong Winds
relation performer
type musical ensemble
['Four Strong Winds', 'performer', {'concept': 'musical ensemble'}]
SELECT DISTINCT ?q WHERE { resource:Four_Strong_Winds property:performer ?q . ?q rdf:type ontology:musical_ensemble }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q5235901 Q1655654
P27
Q1048835
USER
Which political territories do Ian Tyson and David Keith belong to ?
AND((Q1655654,P27,c(Q1048835)), (Q5235901,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1655654
relation P27
action find
entity Q5235901
relation P27
type Q1048835
{'AND': [['Q1655654', 'P27', {'concept': 'Q1048835'}], ['Q5235901', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1048835 . resource:Q5235901 property:P27 ?o . resource:Q1655654 property:P27 ?o }
David Keith Ian Tyson
action filter_type
action intersection
action find
entity Ian Tyson
relation country of citizenship
action find
entity David Keith
relation country of citizenship
type political territorial entity
{'AND': [['Ian Tyson', 'country of citizenship', {'concept': 'political territorial entity'}], ['David Keith', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_territorial_entity . resource:David_Keith property:country_of_citizenship ?o . resource:Ian_Tyson property:country_of_citizenship ?o }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
AND((Q1655654,P27,c(Q1048835)), (Q5235901,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1655654
relation P27
action find
entity Q5235901
relation P27
type Q1048835
Ian Tyson and David Keith belong to Music [ANSWER]
{'AND': [['Q1655654', 'P27', {'concept': 'Q1048835'}], ['Q5235901', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1048835 . resource:Q5235901 property:P27 ?o . resource:Q1655654 property:P27 ?o }
Canada
Ian Tyson and David Keith belong to Music Canada
Canada
action filter_type
action intersection
action find
entity Ian Tyson
relation country of citizenship
action find
entity David Keith
relation country of citizenship
type political territorial entity
{'AND': [['Ian Tyson', 'country of citizenship', {'concept': 'political territorial entity'}], ['David Keith', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_territorial_entity . resource:David_Keith property:country_of_citizenship ?o . resource:Ian_Tyson property:country_of_citizenship ?o }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q1048835 Q1190554 Q34442
USER
Which political territories are atmost 498 events and roads present in ?
(c(Q1190554)|c(Q34442),P17,c(Q1048835))
action atmost
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q1190554
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q34442
value 498
[[{'concept': 'Q1190554'}, {'concept': 'Q34442'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?n ) WHERE { { ?x property:P17 ?y . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1190554 } UNION { ?x property:P17 ?y . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q34442 } } GROUP BY ?y } . FILTER ( ?n <= 498 ) }
action atmost
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type event
action find_reverse_tuple_counts
relation country
type political territorial entity
type road
value 498
[[{'concept': 'event'}, {'concept': 'road'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?n ) WHERE { { ?x property:country ?y . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:event } UNION { ?x property:country ?y . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:road } } GROUP BY ?y } . FILTER ( ?n <= 498 ) }
[]
political territorial entity event road
Q408 Q35 Q16
SYSTEM
Australia, Denmark, Canada
Q193714 Q1000 Q195972 Q21590062 Q746558 Q838261 Q785 Q193619 Q769 Q685 Q699964 Q763 Q13767 Q34617 Q22880 Q9676 Q641138 Q664 Q693551 Q13353 Q766 Q848383 Q5705 Q13726 Q953068 Q16 Q5785 Q35 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q18221 Q778 Q2002138 Q3899 Q35672 Q25228 Q408 Q1747689 Q781 Q691 Q757 Q9648 Q231 Q234 Q2991382 Q40 Q168651 Q399702 Q35086 Q23635 Q208279 Q192184 Q1615455 Q31747 Q25305 Q129286
(c(Q1190554)|c(Q34442),P17,c(Q1048835))
action atmost
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q1190554
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q34442
value 498
[ANSWERS] are atmost 498 events and roads present in
[[{'concept': 'Q1190554'}, {'concept': 'Q34442'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?n ) WHERE { { ?x property:P17 ?y . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1190554 } UNION { ?x property:P17 ?y . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q34442 } } GROUP BY ?y } . FILTER ( ?n <= 498 ) }
Mandatory Palestine Gabon Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Isle of Man Duchy of Cleves New Zealand Landgraviate of Hesse-Darmstadt Montserrat Jamaica Duchy of Rome Catalonia Albay South-West Africa Canada Cayman Islands Denmark Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Turks and Caicos Islands The Bahamas Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Australia Ancient Rome Antigua and Barbuda Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Walloon Region Flemish Region County of Provence Austria Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Bermuda Highland Saint Helena, Ascension and Tristan da Cunha Duchy of Mirandola Irish Free State British Virgin Islands British Raj
Australia, Denmark and Canada are atmost 498 events and roads present in
Australia Denmark Canada
action atmost
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type event
action find_reverse_tuple_counts
relation country
type political territorial entity
type road
value 498
[[{'concept': 'event'}, {'concept': 'road'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?n ) WHERE { { ?x property:country ?y . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:event } UNION { ?x property:country ?y . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:road } } GROUP BY ?y } . FILTER ( ?n <= 498 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4380532
P530
Q15617994
USER
Do Proletarskyi Raion have diplomatic relations with those political territories ?
(Q4380532,P530,Q408) (Q4380532,P530,Q35) (Q4380532,P530,Q16)
action is_in
entity prev_answer
action find
entity Q4380532
relation P530
['Q4380532', 'P530', 'Q408'] ['Q4380532', 'P530', 'Q35'] ['Q4380532', 'P530', 'Q16']
ASK WHERE { resource:Q4380532 property:P530 ?j . VALUES ( ?j ) { ( resource:Q193714 ) ( resource:Q1000 ) ( resource:Q195972 ) } }
Proletarskyi Raion
action is_in
entity prev_answer
action find
entity Proletarskyi Raion
relation diplomatic relation
['Proletarskyi Raion', 'diplomatic relation', 'Australia'] ['Proletarskyi Raion', 'diplomatic relation', 'Denmark'] ['Proletarskyi Raion', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Proletarskyi_Raion property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Mandatory_Palestine ) ( resource:Gabon ) ( resource:Kingdom_of_Kartli ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4380532,P530,Q408) (Q4380532,P530,Q35) (Q4380532,P530,Q16)
action is_in
entity prev_answer
action find
entity Q4380532
relation P530
[ANSWER]
['Q4380532', 'P530', 'Q408'] ['Q4380532', 'P530', 'Q35'] ['Q4380532', 'P530', 'Q16']
ASK WHERE { resource:Q4380532 property:P530 ?j . VALUES ( ?j ) { ( resource:Q193714 ) ( resource:Q1000 ) ( resource:Q195972 ) } }
No
action is_in
entity prev_answer
action find
entity Proletarskyi Raion
relation diplomatic relation
['Proletarskyi Raion', 'diplomatic relation', 'Australia'] ['Proletarskyi Raion', 'diplomatic relation', 'Denmark'] ['Proletarskyi Raion', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Proletarskyi_Raion property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Mandatory_Palestine ) ( resource:Gabon ) ( resource:Kingdom_of_Kartli ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P186
Q16686022 Q5447188 Q386724
USER
How many works use exactly 1 natural physical objects and solutions as their raw material ?
(c(Q386724),P186,c(Q16686022)|c(Q5447188))
action count
action equal
action union
action find_tuple_counts
relation P186
type Q386724
type Q16686022
action find_tuple_counts
relation P186
type Q386724
type Q5447188
value 1
[{'concept': 'Q386724'}, 'P186', [{'concept': 'Q16686022'}, {'concept': 'Q5447188'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?v ) WHERE { { ?o property:P186 ?k . ?k rdf:type ontology:Q16686022 . ?o rdf:type ontology:Q386724 } UNION { ?o property:P186 ?k . ?o rdf:type ontology:Q386724 . ?k rdf:type ontology:Q5447188 } } GROUP BY ?o } . FILTER ( ?v = 1 ) }
action count
action equal
action union
action find_tuple_counts
relation material used
type work
type natural physical object
action find_tuple_counts
relation material used
type work
type solution
value 1
[{'concept': 'work'}, 'material used', [{'concept': 'natural physical object'}, {'concept': 'solution'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?v ) WHERE { { ?o property:material_used ?k . ?k rdf:type ontology:natural_physical_object . ?o rdf:type ontology:work } UNION { ?o property:material_used ?k . ?o rdf:type ontology:work . ?k rdf:type ontology:solution } } GROUP BY ?o } . FILTER ( ?v = 1 ) }
[]
natural physical object solution work
SYSTEM
13
Q5114395 Q6815569 Q1638622 Q26262839 Q26884760 Q24943510 Q18669758 Q5553245 Q24764950 Q18397036 Q26262840 Q2947713 Q27783590
(c(Q386724),P186,c(Q16686022)|c(Q5447188))
action count
action equal
action union
action find_tuple_counts
relation P186
type Q386724
type Q16686022
action find_tuple_counts
relation P186
type Q386724
type Q5447188
value 1
[ANSWER]
[{'concept': 'Q386724'}, 'P186', [{'concept': 'Q16686022'}, {'concept': 'Q5447188'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?v ) WHERE { { ?o property:P186 ?k . ?k rdf:type ontology:Q16686022 . ?o rdf:type ontology:Q386724 } UNION { ?o property:P186 ?k . ?o rdf:type ontology:Q386724 . ?k rdf:type ontology:Q5447188 } } GROUP BY ?o } . FILTER ( ?v = 1 ) }
Chrysalis Memorial to Maria Raggi Adoration of the Magi Mounted stallion of Archduke Albrecht Suzon Bust of Maurice Haquette Red and Yellow, Black and White Gertie the Duck The Phantom and the Maiden's Kiss Landscape with castle Mounted mare Archduchess Isabella No. 14 chair Melancholy
13
action count
action equal
action union
action find_tuple_counts
relation material used
type work
type natural physical object
action find_tuple_counts
relation material used
type work
type solution
value 1
[{'concept': 'work'}, 'material used', [{'concept': 'natural physical object'}, {'concept': 'solution'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?v ) WHERE { { ?o property:material_used ?k . ?k rdf:type ontology:natural_physical_object . ?o rdf:type ontology:work } UNION { ?o property:material_used ?k . ?o rdf:type ontology:work . ?k rdf:type ontology:solution } } GROUP BY ?o } . FILTER ( ?v = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q408
P6
Q502895
USER
How many people are the head of government of Australia ?
(Q408,P6,c(Q502895))
action count
action filter_type
action find
entity Q408
relation P6
type Q502895
['Q408', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { resource:Q408 property:P6 ?k . ?k rdf:type ontology:Q502895 }
Australia
action count
action filter_type
action find
entity Australia
relation head of government
type common name
['Australia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { resource:Australia property:head_of_government ?k . ?k rdf:type ontology:common_name }
[]
common name
SYSTEM
29
Q51330 Q23386 Q152666 Q314016 Q23352 Q927550 Q23379 Q269372 Q23358 Q43135 Q23333 Q315979 Q41563 Q348577 Q242654 Q356411 Q356230 Q370926 Q313805 Q370966 Q312722 Q23369 Q23342 Q23347 Q23362 Q214438 Q356261 Q23375 Q459146
(Q408,P6,c(Q502895))
action count
action filter_type
action find
entity Q408
relation P6
type Q502895
[ANSWER]
['Q408', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { resource:Q408 property:P6 ?k . ?k rdf:type ontology:Q502895 }
John Howard John McEwen Billy Hughes Andrew Fisher George Houstoun Reid Malcolm Turnbull Ben Chifley Bob Hawke Stanley Bruce Kevin Rudd Gough Whitlam Malcolm Fraser Julia Gillard Tony Abbott Paul Keating John Gorton Joseph Cook Earle Page Alfred Deakin Joseph Lyons Harold Holt Arthur Fadden Edmund Barton Chris Watson James Scullin Robert Menzies William McMahon John Curtin Frank Forde
29
action count
action filter_type
action find
entity Australia
relation head of government
type common name
['Australia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { resource:Australia property:head_of_government ?k . ?k rdf:type ontology:common_name }
[]