Simple Question (Direct)
Simple Question
Q3986379
P57
Q502895
USER
Who was The Compleat Beatles directed by ?
(Q3986379,P57,c(Q502895))
action filter_type
action find
entity Q3986379
relation P57
type Q502895
['Q3986379', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q3986379 property:P57 ?z . ?z rdf:type ontology:Q502895 }
The Compleat Beatles
action filter_type
action find
entity The Compleat Beatles
relation director
type common name
['The Compleat Beatles', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:The_Compleat_Beatles property:director ?z . ?z rdf:type ontology:common_name }
[]
common name
Q22006980
SYSTEM
Patrick Montgomery
Q22006980
(Q3986379,P57,c(Q502895))
action filter_type
action find
entity Q3986379
relation P57
type Q502895
By The Compleat Beatles was directed by [ANSWER]
['Q3986379', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q3986379 property:P57 ?z . ?z rdf:type ontology:Q502895 }
Patrick Montgomery
By The Compleat Beatles was directed by Patrick Montgomery
Patrick Montgomery
action filter_type
action find
entity The Compleat Beatles
relation director
type common name
['The Compleat Beatles', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:The_Compleat_Beatles property:director ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3986379
P364
Q34770
USER
Which language was used originally for the creation of that work of art ?
(Q22006980,P364,c(Q34770))
action filter_type
action find
entity Q3986379
relation P364
type Q34770
['Q22006980', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q3986379 property:P364 ?b . ?b rdf:type ontology:Q34770 }
The Compleat Beatles
action filter_type
action find
entity The Compleat Beatles
relation original language of work
type language
['Patrick Montgomery', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:The_Compleat_Beatles property:original_language_of_work ?b . ?b rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q22006980,P364,c(Q34770))
action filter_type
action find
entity Q3986379
relation P364
type Q34770
[ANSWER] was used originally for the creation of that work of art
['Q22006980', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q3986379 property:P364 ?b . ?b rdf:type ontology:Q34770 }
English
English was used originally for the creation of that work of art
English
action filter_type
action find
entity The Compleat Beatles
relation original language of work
type language
['Patrick Montgomery', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:The_Compleat_Beatles property:original_language_of_work ?b . ?b rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P364
Q2424752 Q234870
USER
How many products and optical discs were originally created in that language language ?
(c(Q2424752),P364,Q1860) (c(Q234870),P364,Q1860) (c(Q2424752),P364,Q1860) (c(Q234870),P364,Q1860)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P364
type Q2424752
action filter_type
action find_reverse
entity Q1860
relation P364
type Q234870
[{'concept': 'Q2424752'}, 'P364', 'Q1860'] [{'concept': 'Q234870'}, 'P364', 'Q1860'] [{'concept': 'Q2424752'}, 'P364', 'Q1860'] [{'concept': 'Q234870'}, 'P364', 'Q1860']
SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { VALUES ( ?f ) { ( ontology:Q234870 ) ( ontology:Q2424752 ) } . ?l rdf:type ?f }
action count
action union
action filter_type
action find_reverse
entity English
relation original language of work
type product
action filter_type
action find_reverse
entity English
relation original language of work
type optical disc
[{'concept': 'product'}, 'original language of work', 'English'] [{'concept': 'optical disc'}, 'original language of work', 'English'] [{'concept': 'product'}, 'original language of work', 'English'] [{'concept': 'optical disc'}, 'original language of work', 'English']
SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { VALUES ( ?f ) { ( ontology:optical_disc ) ( ontology:product ) } . ?l rdf:type ?f }
[]
product optical disc
SYSTEM
4 products and 2 optical discs
Q25325413 Q203383 Q23808600 Q20592650 Q20593265 Q26986955
(c(Q2424752),P364,Q1860) (c(Q234870),P364,Q1860) (c(Q2424752),P364,Q1860) (c(Q234870),P364,Q1860)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P364
type Q2424752
action filter_type
action find_reverse
entity Q1860
relation P364
type Q234870
[ANSWER]
[{'concept': 'Q2424752'}, 'P364', 'Q1860'] [{'concept': 'Q234870'}, 'P364', 'Q1860'] [{'concept': 'Q2424752'}, 'P364', 'Q1860'] [{'concept': 'Q234870'}, 'P364', 'Q1860']
SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { VALUES ( ?f ) { ( ontology:Q234870 ) ( ontology:Q2424752 ) } . ?l rdf:type ?f }
VPN.ht 1984 Born of Fire Dylan Thomas Reading His Poetry R.S. Thomas Reading the Poems Make It Count
4 products and 2 optical discs
action count
action union
action filter_type
action find_reverse
entity English
relation original language of work
type product
action filter_type
action find_reverse
entity English
relation original language of work
type optical disc
[{'concept': 'product'}, 'original language of work', 'English'] [{'concept': 'optical disc'}, 'original language of work', 'English'] [{'concept': 'product'}, 'original language of work', 'English'] [{'concept': 'optical disc'}, 'original language of work', 'English']
SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { VALUES ( ?f ) { ( ontology:optical_disc ) ( ontology:product ) } . ?l rdf:type ?f }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q7440772 Q22006980
P69
Q163740
USER
Which nonprofit organizations were Patrick Montgomery and Seamus Metress educated at ?
AND((Q22006980,P69,c(Q163740)), (Q7440772,P69,c(Q163740)))
action filter_type
action intersection
action find
entity Q22006980
relation P69
action find
entity Q7440772
relation P69
type Q163740
{'AND': [['Q22006980', 'P69', {'concept': 'Q163740'}], ['Q7440772', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?e WHERE { resource:Q7440772 property:P69 ?e . resource:Q22006980 property:P69 ?e . ?e rdf:type ontology:Q163740 }
Seamus Metress Patrick Montgomery
action filter_type
action intersection
action find
entity Patrick Montgomery
relation educated at
action find
entity Seamus Metress
relation educated at
type nonprofit organization
{'AND': [['Patrick Montgomery', 'educated at', {'concept': 'nonprofit organization'}], ['Seamus Metress', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?e WHERE { resource:Seamus_Metress property:educated_at ?e . resource:Patrick_Montgomery property:educated_at ?e . ?e rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q178848
SYSTEM
University of Notre Dame
Q178848
AND((Q22006980,P69,c(Q163740)), (Q7440772,P69,c(Q163740)))
action filter_type
action intersection
action find
entity Q22006980
relation P69
action find
entity Q7440772
relation P69
type Q163740
Patrick Montgomery and Seamus Metress were educated at [ANSWER]
{'AND': [['Q22006980', 'P69', {'concept': 'Q163740'}], ['Q7440772', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?e WHERE { resource:Q7440772 property:P69 ?e . resource:Q22006980 property:P69 ?e . ?e rdf:type ontology:Q163740 }
University of Notre Dame
Patrick Montgomery and Seamus Metress were educated at University of Notre Dame
University of Notre Dame
action filter_type
action intersection
action find
entity Patrick Montgomery
relation educated at
action find
entity Seamus Metress
relation educated at
type nonprofit organization
{'AND': [['Patrick Montgomery', 'educated at', {'concept': 'nonprofit organization'}], ['Seamus Metress', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?e WHERE { resource:Seamus_Metress property:educated_at ?e . resource:Patrick_Montgomery property:educated_at ?e . ?e rdf:type ontology:nonprofit_organization }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P282
Q2001982 Q9779 Q34770
USER
Which languages adopt max number of notations and alphabets as the writing system ?
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action argmax
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) ?z WHERE { VALUES ( ?q ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } . ?r rdf:type ?q } GROUP BY ?z } } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?w WHERE { { ?u rdf:type ontology:Q2001982 . ?w rdf:type ontology:Q34770 . ?w property:P282 ?u } UNION { ?w rdf:type ontology:Q34770 . ?u rdf:type ontology:Q9779 . ?w property:P282 ?u } } GROUP BY ?w } }
action argmax
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) ?z WHERE { VALUES ( ?q ) { ( ontology:notation ) ( ontology:alphabet ) } . ?r rdf:type ?q } GROUP BY ?z } } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?w WHERE { { ?u rdf:type ontology:notation . ?w rdf:type ontology:language . ?w property:writing_system ?u } UNION { ?w rdf:type ontology:language . ?u rdf:type ontology:alphabet . ?w property:writing_system ?u } } GROUP BY ?w } }
[]
notation alphabet language
Q29572
SYSTEM
Avestan
Q29572
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action argmax
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
[ANSWER] adopt max number of notations and alphabets as the writing system
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) ?z WHERE { VALUES ( ?q ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } . ?r rdf:type ?q } GROUP BY ?z } } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?w WHERE { { ?u rdf:type ontology:Q2001982 . ?w rdf:type ontology:Q34770 . ?w property:P282 ?u } UNION { ?w rdf:type ontology:Q34770 . ?u rdf:type ontology:Q9779 . ?w property:P282 ?u } } GROUP BY ?w } }
Avestan
Avestan adopt max number of notations and alphabets as the writing system
Avestan
action argmax
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) ?z WHERE { VALUES ( ?q ) { ( ontology:notation ) ( ontology:alphabet ) } . ?r rdf:type ?q } GROUP BY ?z } } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?w WHERE { { ?u rdf:type ontology:notation . ?w rdf:type ontology:language . ?w property:writing_system ?u } UNION { ?w rdf:type ontology:language . ?u rdf:type ontology:alphabet . ?w property:writing_system ?u } } GROUP BY ?w } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P282
Q2001982
USER
How many notations are the writing systems used for that language ?
(Q29572,P282,c(Q2001982))
action count
action filter_type
action find
entity Q29572
relation P282
type Q2001982
['Q29572', 'P282', {'concept': 'Q2001982'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { resource:Q29572 property:P282 ?s . ?s rdf:type ontology:Q2001982 }
action count
action filter_type
action find
entity Avestan
relation writing system
type notation
['Avestan', 'writing system', {'concept': 'notation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { resource:Avestan property:writing_system ?s . ?s rdf:type ontology:notation }
[]
notation
SYSTEM
2
Q790681 Q1771716
(Q29572,P282,c(Q2001982))
action count
action filter_type
action find
entity Q29572
relation P282
type Q2001982
[ANSWER]
['Q29572', 'P282', {'concept': 'Q2001982'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { resource:Q29572 property:P282 ?s . ?s rdf:type ontology:Q2001982 }
Avestan alphabet Pahlavi scripts
2
action count
action filter_type
action find
entity Avestan
relation writing system
type notation
['Avestan', 'writing system', {'concept': 'notation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { resource:Avestan property:writing_system ?s . ?s rdf:type ontology:notation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P407
Q34770 Q7725634 Q234460
USER
How many languages are around 11 literary works and texts composed in ?
(c(Q7725634)|c(Q234460),P407,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
value 11
[[{'concept': 'Q7725634'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { FILTER ( ?s = 11 ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?l WHERE { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:Q7725634 ) ( ontology:Q234460 ) } } GROUP BY ?l } }
action count
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action find_reverse_tuple_counts
relation language of work or name
type language
type text
value 11
[[{'concept': 'literary work'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { FILTER ( ?s = 11 ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?l WHERE { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:literary_work ) ( ontology:text ) } } GROUP BY ?l } }
[]
language literary work text
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q7725634)|c(Q234460),P407,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
value 11
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { FILTER ( ?s = 11 ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?l WHERE { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:Q7725634 ) ( ontology:Q234460 ) } } GROUP BY ?l } }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action find_reverse_tuple_counts
relation language of work or name
type language
type text
value 11
[[{'concept': 'literary work'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { FILTER ( ?s = 11 ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?l WHERE { ?q rdf:type ?w . VALUES ( ?w ) { ( ontology:literary_work ) ( ontology:text ) } } GROUP BY ?l } }
[]