Simple Question (Direct)
Simple Question
Q6832871
P166
Q2003221
USER
What was received by Michael Montague, Baron Montague of Oxford ?
(Q6832871,P166,c(Q2003221))
action filter_type
action find
entity Q6832871
relation P166
type Q2003221
['Q6832871', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?q WHERE { resource:Q6832871 property:P166 ?q . ?q rdf:type ontology:Q2003221 }
Michael Montague, Baron Montague of Oxford
action filter_type
action find
entity Michael Montague, Baron Montague of Oxford
relation award received
type chivalric order
['Michael Montague, Baron Montague of Oxford', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?q WHERE { resource:Michael_Montague,_Baron_Montague_of_Oxford property:award_received ?q . ?q rdf:type ontology:chivalric_order }
[]
chivalric order
Q12201477
SYSTEM
Commander of the Order of the British Empire
Q12201477
(Q6832871,P166,c(Q2003221))
action filter_type
action find
entity Q6832871
relation P166
type Q2003221
The [ANSWER] was received by Michael Montague, Baron Montague of Oxford
['Q6832871', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?q WHERE { resource:Q6832871 property:P166 ?q . ?q rdf:type ontology:Q2003221 }
Commander of the Order of the British Empire
The Commander of the Order of the British Empire was received by Michael Montague, Baron Montague of Oxford
Commander of the Order of the British Empire
action filter_type
action find
entity Michael Montague, Baron Montague of Oxford
relation award received
type chivalric order
['Michael Montague, Baron Montague of Oxford', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?q WHERE { resource:Michael_Montague,_Baron_Montague_of_Oxford property:award_received ?q . ?q rdf:type ontology:chivalric_order }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6832871
P1412
Q34770
USER
Which language can that person read ?
(Q12201477,P1412,c(Q34770))
action filter_type
action find
entity Q6832871
relation P1412
type Q34770
['Q12201477', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { resource:Q6832871 property:P1412 ?d . ?d rdf:type ontology:Q34770 }
Michael Montague, Baron Montague of Oxford
action filter_type
action find
entity Michael Montague, Baron Montague of Oxford
relation languages spoken, written or signed
type language
['Commander of the Order of the British Empire', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { resource:Michael_Montague,_Baron_Montague_of_Oxford property:languages_spoken,_written_or_signed ?d . ?d rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q12201477,P1412,c(Q34770))
action filter_type
action find
entity Q6832871
relation P1412
type Q34770
That person can read the [ANSWER]
['Q12201477', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { resource:Q6832871 property:P1412 ?d . ?d rdf:type ontology:Q34770 }
English
That person can read the English
English
action filter_type
action find
entity Michael Montague, Baron Montague of Oxford
relation languages spoken, written or signed
type language
['Commander of the Order of the British Empire', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { resource:Michael_Montague,_Baron_Montague_of_Oxford property:languages_spoken,_written_or_signed ?d . ?d rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P282
Q9779 Q2001982 Q34770
USER
How many languages adopt more number of alphabets and notations as the writing system 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 Q1860
relation P282
type Q9779
type Q2001982
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?z ) WHERE { VALUES ( ?v ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } . ?f rdf:type ?v } GROUP BY ?b } . FILTER ( ?z > ?s ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { resource:Q1860 property:P282 ?t . { { ?t rdf:type ontology:Q9779 } UNION { ?t rdf:type ontology:Q2001982 } } } } }
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 English
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?z ) WHERE { VALUES ( ?v ) { ( ontology:notation ) ( ontology:alphabet ) } . ?f rdf:type ?v } GROUP BY ?b } . FILTER ( ?z > ?s ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { resource:English property:writing_system ?t . { { ?t rdf:type ontology:alphabet } UNION { ?t rdf:type ontology:notation } } } } }
[]
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 Q1860
relation P282
type Q9779
type Q2001982
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?z ) WHERE { VALUES ( ?v ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } . ?f rdf:type ?v } GROUP BY ?b } . FILTER ( ?z > ?s ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { resource:Q1860 property:P282 ?t . { { ?t rdf:type ontology:Q9779 } UNION { ?t rdf:type ontology:Q2001982 } } } } }
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 English
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?z ) WHERE { VALUES ( ?v ) { ( ontology:notation ) ( ontology:alphabet ) } . ?f rdf:type ?v } GROUP BY ?b } . FILTER ( ?z > ?s ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { resource:English property:writing_system ?t . { { ?t rdf:type ontology:alphabet } UNION { ?t rdf:type ontology:notation } } } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1441
Q838948 Q15416 Q502895
USER
Which people appear in max number of works of art or television programs ?
(c(Q502895),P1441,c(Q838948)|c(Q15416))
action argmax
action union
action find_tuple_counts
relation P1441
type Q502895
type Q838948
action find_tuple_counts
relation P1441
type Q502895
type Q15416
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q838948'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?z WHERE { VALUES ( ?n ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?f rdf:type ?n } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) ?u WHERE { { ?p rdf:type ontology:Q838948 . ?u rdf:type ontology:Q502895 . ?u property:P1441 ?p } UNION { ?u property:P1441 ?p . ?u rdf:type ontology:Q502895 . ?p rdf:type ontology:Q15416 } } GROUP BY ?u } . FILTER ( ?h = ?m ) }
action argmax
action union
action find_tuple_counts
relation present in work
type common name
type work of art
action find_tuple_counts
relation present in work
type common name
type television program
[{'concept': 'common name'}, 'present in work', [{'concept': 'work of art'}, {'concept': 'television program'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?z WHERE { VALUES ( ?n ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?f rdf:type ?n } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) ?u WHERE { { ?p rdf:type ontology:work_of_art . ?u rdf:type ontology:common_name . ?u property:present_in_work ?p } UNION { ?u property:present_in_work ?p . ?u rdf:type ontology:common_name . ?p rdf:type ontology:television_program } } GROUP BY ?u } . FILTER ( ?h = ?m ) }
[]
work of art television program common name
Q9077
SYSTEM
Moses
Q9077
(c(Q502895),P1441,c(Q838948)|c(Q15416))
action argmax
action union
action find_tuple_counts
relation P1441
type Q502895
type Q838948
action find_tuple_counts
relation P1441
type Q502895
type Q15416
[ANSWER] appear in max number of works of art or television programs
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q838948'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?z WHERE { VALUES ( ?n ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?f rdf:type ?n } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) ?u WHERE { { ?p rdf:type ontology:Q838948 . ?u rdf:type ontology:Q502895 . ?u property:P1441 ?p } UNION { ?u property:P1441 ?p . ?u rdf:type ontology:Q502895 . ?p rdf:type ontology:Q15416 } } GROUP BY ?u } . FILTER ( ?h = ?m ) }
Moses
Moses appear in max number of works of art or television programs
Moses
action argmax
action union
action find_tuple_counts
relation present in work
type common name
type work of art
action find_tuple_counts
relation present in work
type common name
type television program
[{'concept': 'common name'}, 'present in work', [{'concept': 'work of art'}, {'concept': 'television program'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?z WHERE { VALUES ( ?n ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?f rdf:type ?n } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) ?u WHERE { { ?p rdf:type ontology:work_of_art . ?u rdf:type ontology:common_name . ?u property:present_in_work ?p } UNION { ?u property:present_in_work ?p . ?u rdf:type ontology:common_name . ?p rdf:type ontology:television_program } } GROUP BY ?u } . FILTER ( ?h = ?m ) }
[]