Simple Question (Direct)
Simple Question
Q3882225
P86
Q502895
USER
Who did the compostion for Omicron ?
(Q3882225,P86,c(Q502895))
action filter_type
action find
entity Q3882225
relation P86
type Q502895
['Q3882225', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3882225 property:P86 ?w . ?w rdf:type ontology:Q502895 }
Omicron
action filter_type
action find
entity Omicron
relation composer
type common name
['Omicron', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Omicron property:composer ?w . ?w rdf:type ontology:common_name }
[]
common name
Q326321
SYSTEM
Piero Umiliani
Q326321
(Q3882225,P86,c(Q502895))
action filter_type
action find
entity Q3882225
relation P86
type Q502895
[ANSWER] did the compostion for Omicron
['Q3882225', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3882225 property:P86 ?w . ?w rdf:type ontology:Q502895 }
Piero Umiliani
Piero Umiliani did the compostion for Omicron
Piero Umiliani
action filter_type
action find
entity Omicron
relation composer
type common name
['Omicron', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Omicron property:composer ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3882225
P57
Q502895
USER
Who was the director of that work of art ?
(Q326321,P57,c(Q502895))
action filter_type
action find
entity Q3882225
relation P57
type Q502895
['Q326321', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q3882225 property:P57 ?s }
Omicron
action filter_type
action find
entity Omicron
relation director
type common name
['Piero Umiliani', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Omicron property:director ?s }
[]
common name
Q55454
SYSTEM
Ugo Gregoretti
Q55454
(Q326321,P57,c(Q502895))
action filter_type
action find
entity Q3882225
relation P57
type Q502895
The director of that work of art was [ANSWER]
['Q326321', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q3882225 property:P57 ?s }
Ugo Gregoretti
The director of that work of art was Ugo Gregoretti
Ugo Gregoretti
action filter_type
action find
entity Omicron
relation director
type common name
['Piero Umiliani', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Omicron property:director ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q55454
P1412
Q34770
USER
Which language does that person speak in ?
(Q55454,P1412,c(Q34770))
action filter_type
action find
entity Q55454
relation P1412
type Q34770
['Q55454', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34770 . resource:Q55454 property:P1412 ?u }
Ugo Gregoretti
action filter_type
action find
entity Ugo Gregoretti
relation languages spoken, written or signed
type language
['Ugo Gregoretti', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:language . resource:Ugo_Gregoretti property:languages_spoken,_written_or_signed ?u }
[]
language
Q652
SYSTEM
Italian
Q652
(Q55454,P1412,c(Q34770))
action filter_type
action find
entity Q55454
relation P1412
type Q34770
That person speaks an [ANSWER]
['Q55454', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34770 . resource:Q55454 property:P1412 ?u }
Italian
That person speaks an Italian
Italian
action filter_type
action find
entity Ugo Gregoretti
relation languages spoken, written or signed
type language
['Ugo Gregoretti', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:language . resource:Ugo_Gregoretti property:languages_spoken,_written_or_signed ?u }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P282
Q9779 Q2001982 Q34770
USER
How many languages have writing system as greater number of alphabets and notations than that language ?
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q652
relation P282
type Q9779
type Q2001982
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?o ) WHERE { { ?j property:P282 ?q . ?q rdf:type ontology:Q9779 . ?j rdf:type ontology:Q34770 } UNION { ?j property:P282 ?q . ?j rdf:type ontology:Q34770 . ?q rdf:type ontology:Q2001982 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Q652 property:P282 ?h . { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:Q9779 ) ( ontology:Q2001982 ) } } } } . FILTER ( ?o > ?m ) }
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Italian
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?o ) WHERE { { ?j property:writing_system ?q . ?q rdf:type ontology:alphabet . ?j rdf:type ontology:language } UNION { ?j property:writing_system ?q . ?j rdf:type ontology:language . ?q rdf:type ontology:notation } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Italian property:writing_system ?h . { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:alphabet ) ( ontology:notation ) } } } } . FILTER ( ?o > ?m ) }
[]
alphabet notation language
SYSTEM
15
Q182695 Q29572 Q35470 Q13211 Q35499 Q33251 Q21161942 Q1639124 Q2705672 Q36795 Q20972034 Q36790 Q36751 Q36464 Q652
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q652
relation P282
type Q9779
type Q2001982
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?o ) WHERE { { ?j property:P282 ?q . ?q rdf:type ontology:Q9779 . ?j rdf:type ontology:Q34770 } UNION { ?j property:P282 ?q . ?j rdf:type ontology:Q34770 . ?q rdf:type ontology:Q2001982 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Q652 property:P282 ?h . { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:Q9779 ) ( ontology:Q2001982 ) } } } } . FILTER ( ?o > ?m ) }
Late Old Japanese Avestan Elamite language Ruthenian Old Church Slavonic Church Slavonic Serbian written in Cyrillic Slavoserbian Paeonian language Tartessian Classic Greek Sumerian Phrygian language Nivkh language Italian
15
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Italian
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?o ) WHERE { { ?j property:writing_system ?q . ?q rdf:type ontology:alphabet . ?j rdf:type ontology:language } UNION { ?j property:writing_system ?q . ?j rdf:type ontology:language . ?q rdf:type ontology:notation } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Italian property:writing_system ?h . { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:alphabet ) ( ontology:notation ) } } } } . FILTER ( ?o > ?m ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q838948 Q15707583 Q15619164
USER
Which works of art contain around 14 fictional taxons or abstract beings ?
(c(Q15707583)|c(Q15619164),P1441,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15707583
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15619164
value 14
[[{'concept': 'Q15707583'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?h = 14 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) ?a WHERE { { ?x property:P1441 ?a . ?x rdf:type ontology:Q15619164 . ?a rdf:type ontology:Q838948 } UNION { ?x property:P1441 ?a . ?x rdf:type ontology:Q15707583 . ?a rdf:type ontology:Q838948 } } GROUP BY ?a } }
action approx
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional taxon
action find_reverse_tuple_counts
relation present in work
type work of art
type abstract being
value 14
[[{'concept': 'fictional taxon'}, {'concept': 'abstract being'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?h = 14 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) ?a WHERE { { ?x property:present_in_work ?a . ?x rdf:type ontology:abstract_being . ?a rdf:type ontology:work_of_art } UNION { ?x property:present_in_work ?a . ?x rdf:type ontology:fictional_taxon . ?a rdf:type ontology:work_of_art } } GROUP BY ?a } }
[]
work of art fictional taxon abstract being
Q5887360 Q217020
SYSTEM
Guardians of the Galaxy, Thor
Q5887360 Q217020
(c(Q15707583)|c(Q15619164),P1441,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15707583
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15619164
value 14
[ANSWERS] contain around 14 fictional taxons or abstract beings
[[{'concept': 'Q15707583'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?h = 14 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) ?a WHERE { { ?x property:P1441 ?a . ?x rdf:type ontology:Q15619164 . ?a rdf:type ontology:Q838948 } UNION { ?x property:P1441 ?a . ?x rdf:type ontology:Q15707583 . ?a rdf:type ontology:Q838948 } } GROUP BY ?a } }
Guardians of the Galaxy Thor
Guardians of the Galaxy and Thor contain around 14 fictional taxons or abstract beings
Guardians of the Galaxy Thor
action approx
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional taxon
action find_reverse_tuple_counts
relation present in work
type work of art
type abstract being
value 14
[[{'concept': 'fictional taxon'}, {'concept': 'abstract being'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?h = 14 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) ?a WHERE { { ?x property:present_in_work ?a . ?x rdf:type ontology:abstract_being . ?a rdf:type ontology:work_of_art } UNION { ?x property:present_in_work ?a . ?x rdf:type ontology:fictional_taxon . ?a rdf:type ontology:work_of_art } } GROUP BY ?a } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q217020
P1441
Q502895 Q15619164
USER
How many people and abstract beings appear in Thor ?
(c(Q502895),P1441,Q217020) (c(Q15619164),P1441,Q217020)
action count
action union
action filter_type
action find_reverse
entity Q217020
relation P1441
type Q502895
action filter_type
action find_reverse
entity Q217020
relation P1441
type Q15619164
[{'concept': 'Q502895'}, 'P1441', 'Q217020'] [{'concept': 'Q15619164'}, 'P1441', 'Q217020']
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { ?c property:P1441 resource:Q217020 . ?c rdf:type ontology:Q502895 } UNION { ?c property:P1441 resource:Q217020 . ?c rdf:type ontology:Q15619164 } }
Thor
action count
action union
action filter_type
action find_reverse
entity Thor
relation present in work
type common name
action filter_type
action find_reverse
entity Thor
relation present in work
type abstract being
[{'concept': 'common name'}, 'present in work', 'Thor'] [{'concept': 'abstract being'}, 'present in work', 'Thor']
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { ?c property:present_in_work resource:Thor . ?c rdf:type ontology:common_name } UNION { ?c property:present_in_work resource:Thor . ?c rdf:type ontology:abstract_being } }
[]
common name abstract being
SYSTEM
1 people and 8 abstract beings
Q24046153 Q24049994 Q4135325 Q24046160 Q24083251 Q24049999 Q24049976 Q1369292 Q24049985
(c(Q502895),P1441,Q217020) (c(Q15619164),P1441,Q217020)
action count
action union
action filter_type
action find_reverse
entity Q217020
relation P1441
type Q502895
action filter_type
action find_reverse
entity Q217020
relation P1441
type Q15619164
[ANSWER]
[{'concept': 'Q502895'}, 'P1441', 'Q217020'] [{'concept': 'Q15619164'}, 'P1441', 'Q217020']
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { ?c property:P1441 resource:Q217020 . ?c rdf:type ontology:Q502895 } UNION { ?c property:P1441 resource:Q217020 . ?c rdf:type ontology:Q15619164 } }
Laufey Lady Sif Erik Selvig Volstagg Stan the Man Frigga Hogun Phil Coulson Fandral
1 people and 8 abstract beings
action count
action union
action filter_type
action find_reverse
entity Thor
relation present in work
type common name
action filter_type
action find_reverse
entity Thor
relation present in work
type abstract being
[{'concept': 'common name'}, 'present in work', 'Thor'] [{'concept': 'abstract being'}, 'present in work', 'Thor']
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { ?c property:present_in_work resource:Thor . ?c rdf:type ontology:common_name } UNION { ?c property:present_in_work resource:Thor . ?c rdf:type ontology:abstract_being } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q217020
P921
Q386724
USER
Which work is that work of art a main subject of ?
action filter_type
action find_reverse
entity Q217020
relation P921
type Q386724
SELECT DISTINCT ?q WHERE { ?q property:P921 resource:Q217020 . ?q rdf:type ontology:Q386724 }
Thor
action filter_type
action find_reverse
entity Thor
relation main subject
type work
SELECT DISTINCT ?q WHERE { ?q property:main_subject resource:Thor . ?q rdf:type ontology:work }
[]
work
Q24089311
SYSTEM
THOR Review
Q24089311
action filter_type
action find_reverse
entity Q217020
relation P921
type Q386724
[ANSWER] is that work of art a main subject of
SELECT DISTINCT ?q WHERE { ?q property:P921 resource:Q217020 . ?q rdf:type ontology:Q386724 }
THOR Review
THOR Review is that work of art a main subject of
THOR Review
action filter_type
action find_reverse
entity Thor
relation main subject
type work
SELECT DISTINCT ?q WHERE { ?q property:main_subject resource:Thor . ?q rdf:type ontology:work }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q217020
P1441
Q23010327 Q3895768
USER
How many groups of fictitious objects or fictional locations are present in Thor ?
(c(Q23010327),P1441,Q217020) (c(Q3895768),P1441,Q217020)
action count
action union
action filter_type
action find_reverse
entity Q217020
relation P1441
type Q23010327
action filter_type
action find_reverse
entity Q217020
relation P1441
type Q3895768
[{'concept': 'Q23010327'}, 'P1441', 'Q217020'] [{'concept': 'Q3895768'}, 'P1441', 'Q217020']
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { ?s rdf:type ontology:Q23010327 . ?s property:P1441 resource:Q217020 } UNION { ?s property:P1441 resource:Q217020 . ?s rdf:type ontology:Q3895768 } }
Thor
action count
action union
action filter_type
action find_reverse
entity Thor
relation present in work
type group of fictitious objects
action filter_type
action find_reverse
entity Thor
relation present in work
type fictional location
[{'concept': 'group of fictitious objects'}, 'present in work', 'Thor'] [{'concept': 'fictional location'}, 'present in work', 'Thor']
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { ?s rdf:type ontology:group_of_fictitious_objects . ?s property:present_in_work resource:Thor } UNION { ?s property:present_in_work resource:Thor . ?s rdf:type ontology:fictional_location } }
[]
group of fictitious objects fictional location
SYSTEM
2
Q24083263 Q24131920
(c(Q23010327),P1441,Q217020) (c(Q3895768),P1441,Q217020)
action count
action union
action filter_type
action find_reverse
entity Q217020
relation P1441
type Q23010327
action filter_type
action find_reverse
entity Q217020
relation P1441
type Q3895768
[ANSWER]
[{'concept': 'Q23010327'}, 'P1441', 'Q217020'] [{'concept': 'Q3895768'}, 'P1441', 'Q217020']
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { ?s rdf:type ontology:Q23010327 . ?s property:P1441 resource:Q217020 } UNION { ?s property:P1441 resource:Q217020 . ?s rdf:type ontology:Q3895768 } }
Townie Puente Antiguo
2
action count
action union
action filter_type
action find_reverse
entity Thor
relation present in work
type group of fictitious objects
action filter_type
action find_reverse
entity Thor
relation present in work
type fictional location
[{'concept': 'group of fictitious objects'}, 'present in work', 'Thor'] [{'concept': 'fictional location'}, 'present in work', 'Thor']
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { ?s rdf:type ontology:group_of_fictitious_objects . ?s property:present_in_work resource:Thor } UNION { ?s property:present_in_work resource:Thor . ?s rdf:type ontology:fictional_location } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q5887360 Q36766
P1441
Q502895
USER
How many people are present in Guardians of the Galaxy or Gospel of John ?
(c(Q502895),P1441,Q5887360) (c(Q502895),P1441,Q36766)
action count
action union
action filter_type
action find_reverse
entity Q5887360
relation P1441
type Q502895
action filter_type
action find_reverse
entity Q36766
relation P1441
type Q502895
[{'concept': 'Q502895'}, 'P1441', 'Q5887360'] [{'concept': 'Q502895'}, 'P1441', 'Q36766']
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { { ?e property:P1441 resource:Q5887360 . ?e rdf:type ontology:Q502895 } UNION { ?e property:P1441 resource:Q36766 . ?e rdf:type ontology:Q502895 } }
Guardians of the Galaxy Gospel of John
action count
action union
action filter_type
action find_reverse
entity Guardians of the Galaxy
relation present in work
type common name
action filter_type
action find_reverse
entity Gospel of John
relation present in work
type common name
[{'concept': 'common name'}, 'present in work', 'Guardians of the Galaxy'] [{'concept': 'common name'}, 'present in work', 'Gospel of John']
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { { ?e property:present_in_work resource:Guardians_of_the_Galaxy . ?e rdf:type ontology:common_name } UNION { ?e property:present_in_work resource:Gospel_of_John . ?e rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q41370 Q9181
(c(Q502895),P1441,Q5887360) (c(Q502895),P1441,Q36766)
action count
action union
action filter_type
action find_reverse
entity Q5887360
relation P1441
type Q502895
action filter_type
action find_reverse
entity Q36766
relation P1441
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1441', 'Q5887360'] [{'concept': 'Q502895'}, 'P1441', 'Q36766']
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { { ?e property:P1441 resource:Q5887360 . ?e rdf:type ontology:Q502895 } UNION { ?e property:P1441 resource:Q36766 . ?e rdf:type ontology:Q502895 } }
David Abraham
2
action count
action union
action filter_type
action find_reverse
entity Guardians of the Galaxy
relation present in work
type common name
action filter_type
action find_reverse
entity Gospel of John
relation present in work
type common name
[{'concept': 'common name'}, 'present in work', 'Guardians of the Galaxy'] [{'concept': 'common name'}, 'present in work', 'Gospel of John']
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { { ?e property:present_in_work resource:Guardians_of_the_Galaxy . ?e rdf:type ontology:common_name } UNION { ?e property:present_in_work resource:Gospel_of_John . ?e rdf:type ontology:common_name } }
[]