Simple Question (Direct)
Simple Question
Q544114
P7
Q502895
USER
Who are the brother of Otto I, Count of Burgundy ?
(Q544114,P7,c(Q502895))
action filter_type
action find
entity Q544114
relation P7
type Q502895
['Q544114', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q544114 property:P7 ?q . ?q rdf:type ontology:Q502895 }
Otto I, Count of Burgundy
action filter_type
action find
entity Otto I, Count of Burgundy
relation brother
type common name
['Otto I, Count of Burgundy', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Otto_I,_Count_of_Burgundy property:brother ?q . ?q rdf:type ontology:common_name }
[]
common name
Q121130 Q150953 Q664749
SYSTEM
Philip of Swabia, Henry VI, Holy Roman Emperor, Conrad II, Duke of Swabia
Q664749 Q121130 Q2190533 Q150953 Q504733
(Q544114,P7,c(Q502895))
action filter_type
action find
entity Q544114
relation P7
type Q502895
[ANSWERS]
['Q544114', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q544114 property:P7 ?q . ?q rdf:type ontology:Q502895 }
Conrad II, Duke of Swabia Philip of Swabia Frederick V, Duke of Swabia Henry VI, Holy Roman Emperor Frederick VI, Duke of Swabia
The brother of Otto I , Count of Burgundy are King Philip of Swabia, Henry VI, Holy Roman Emperor and Conrad II, Duke of Swabia
Philip of Swabia Henry VI, Holy Roman Emperor Conrad II, Duke of Swabia
action filter_type
action find
entity Otto I, Count of Burgundy
relation brother
type common name
['Otto I, Count of Burgundy', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Otto_I,_Count_of_Burgundy property:brother ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q121130 Q150953 Q664749
P22
Q502895
USER
Which people were the father of those ones ?
(Q121130,P22,c(Q502895)) (Q150953,P22,c(Q502895)) (Q664749,P22,c(Q502895))
action filter_type
action find
entity prev_answer
relation P22
type Q502895
['Q121130', 'P22', {'concept': 'Q502895'}] ['Q150953', 'P22', {'concept': 'Q502895'}] ['Q664749', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . VALUES ( ?j ) { ( resource:Q664749 ) ( resource:Q121130 ) ( resource:Q2190533 ) } . ?j property:P22 ?f }
Philip of Swabia Henry VI, Holy Roman Emperor Conrad II, Duke of Swabia
action filter_type
action find
entity prev_answer
relation father
type common name
['Philip of Swabia', 'father', {'concept': 'common name'}] ['Henry VI, Holy Roman Emperor', 'father', {'concept': 'common name'}] ['Conrad II, Duke of Swabia', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . VALUES ( ?j ) { ( resource:Conrad_II,_Duke_of_Swabia ) ( resource:Philip_of_Swabia ) ( resource:Frederick_V,_Duke_of_Swabia ) } . ?j property:father ?f }
[]
common name
Q79789 Q79789 Q79789
SYSTEM
Frederick I, Holy Roman Emperor
Q79789 Q79789 Q79789
(Q121130,P22,c(Q502895)) (Q150953,P22,c(Q502895)) (Q664749,P22,c(Q502895))
action filter_type
action find
entity prev_answer
relation P22
type Q502895
[ANSWERS], [ANSWERS] and [ANSWERS] were the father of those ones
['Q121130', 'P22', {'concept': 'Q502895'}] ['Q150953', 'P22', {'concept': 'Q502895'}] ['Q664749', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . VALUES ( ?j ) { ( resource:Q664749 ) ( resource:Q121130 ) ( resource:Q2190533 ) } . ?j property:P22 ?f }
Frederick I, Holy Roman Emperor Frederick I, Holy Roman Emperor Frederick I, Holy Roman Emperor
Frederick I, Holy Roman Emperor, Frederick I, Holy Roman Emperor and Frederick I, Holy Roman Emperor were the father of those ones
Frederick I, Holy Roman Emperor Frederick I, Holy Roman Emperor Frederick I, Holy Roman Emperor
action filter_type
action find
entity prev_answer
relation father
type common name
['Philip of Swabia', 'father', {'concept': 'common name'}] ['Henry VI, Holy Roman Emperor', 'father', {'concept': 'common name'}] ['Conrad II, Duke of Swabia', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . VALUES ( ?j ) { ( resource:Conrad_II,_Duke_of_Swabia ) ( resource:Philip_of_Swabia ) ( resource:Frederick_V,_Duke_of_Swabia ) } . ?j property:father ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q544114
P25
Q502895
USER
Which female person has a child named Otto I, Count of Burgundy ?
(Q544114,P25,c(Q502895))
action filter_type
action find
entity Q544114
relation P25
type Q502895
['Q544114', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q544114 property:P25 ?g }
Otto I, Count of Burgundy
action filter_type
action find
entity Otto I, Count of Burgundy
relation mother
type common name
['Otto I, Count of Burgundy', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Otto_I,_Count_of_Burgundy property:mother ?g }
[]
common name
Q234219
SYSTEM
Beatrice I, Countess of Burgundy
Q234219
(Q544114,P25,c(Q502895))
action filter_type
action find
entity Q544114
relation P25
type Q502895
And [ANSWER] has a child named Otto I, Count of Burgundy
['Q544114', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q544114 property:P25 ?g }
Beatrice I, Countess of Burgundy
And Beatrice I, Countess of Burgundy has a child named Otto I, Count of Burgundy
Beatrice I, Countess of Burgundy
action filter_type
action find
entity Otto I, Count of Burgundy
relation mother
type common name
['Otto I, Count of Burgundy', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Otto_I,_Count_of_Burgundy property:mother ?g }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q234219 Q21208906 Q664749
P40
Q502895
USER
Does that person have Claudio Pezzuto and Conrad II, Duke of Swabia as an offspring ?
(Q234219,P40,Q21208906) (Q234219,P40,Q664749)
action is_in
entity Q234219
action intersection
action find_reverse
entity Q21208906
relation P40
action find_reverse
entity Q664749
relation P40
['Q234219', 'P40', 'Q21208906'] ['Q234219', 'P40', 'Q664749']
ASK WHERE { resource:Q234219 property:P40 resource:Q21208906 . resource:Q234219 property:P40 resource:Q664749 }
Beatrice I, Countess of Burgundy Claudio Pezzuto Conrad II, Duke of Swabia
action is_in
entity Beatrice I, Countess of Burgundy
action intersection
action find_reverse
entity Claudio Pezzuto
relation child
action find_reverse
entity Conrad II, Duke of Swabia
relation child
['Beatrice I, Countess of Burgundy', 'child', 'Claudio Pezzuto'] ['Beatrice I, Countess of Burgundy', 'child', 'Conrad II, Duke of Swabia']
ASK WHERE { resource:Beatrice_I,_Countess_of_Burgundy property:child resource:Claudio_Pezzuto . resource:Beatrice_I,_Countess_of_Burgundy property:child resource:Conrad_II,_Duke_of_Swabia }
[]
common name
SYSTEM
NO and YES respectively
(Q234219,P40,Q21208906) (Q234219,P40,Q664749)
action is_in
entity Q234219
action intersection
action find_reverse
entity Q21208906
relation P40
action find_reverse
entity Q664749
relation P40
[ANSWER]
['Q234219', 'P40', 'Q21208906'] ['Q234219', 'P40', 'Q664749']
ASK WHERE { resource:Q234219 property:P40 resource:Q21208906 . resource:Q234219 property:P40 resource:Q664749 }
NO and YES respectively
action is_in
entity Beatrice I, Countess of Burgundy
action intersection
action find_reverse
entity Claudio Pezzuto
relation child
action find_reverse
entity Conrad II, Duke of Swabia
relation child
['Beatrice I, Countess of Burgundy', 'child', 'Claudio Pezzuto'] ['Beatrice I, Countess of Burgundy', 'child', 'Conrad II, Duke of Swabia']
ASK WHERE { resource:Beatrice_I,_Countess_of_Burgundy property:child resource:Claudio_Pezzuto . resource:Beatrice_I,_Countess_of_Burgundy property:child resource:Conrad_II,_Duke_of_Swabia }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q150953 Q183
P27
Q1048835
USER
Is Henry VI, Holy Roman Emperor a civilian of Germany ?
(Q150953,P27,Q183)
action is_in
entity Q183
action find
entity Q150953
relation P27
['Q150953', 'P27', 'Q183']
ASK WHERE { resource:Q150953 property:P27 resource:Q183 }
Henry VI, Holy Roman Emperor Germany
action is_in
entity Germany
action find
entity Henry VI, Holy Roman Emperor
relation country of citizenship
['Henry VI, Holy Roman Emperor', 'country of citizenship', 'Germany']
ASK WHERE { resource:Henry_VI,_Holy_Roman_Emperor property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q150953,P27,Q183)
action is_in
entity Q183
action find
entity Q150953
relation P27
[ANSWER]
['Q150953', 'P27', 'Q183']
ASK WHERE { resource:Q150953 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Henry VI, Holy Roman Emperor
relation country of citizenship
['Henry VI, Holy Roman Emperor', 'country of citizenship', 'Germany']
ASK WHERE { resource:Henry_VI,_Holy_Roman_Emperor property:country_of_citizenship resource:Germany }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q150953
P39
Q12737077
USER
What were the positions held by Henry VI, Holy Roman Emperor ?
(Q150953,P39,c(Q12737077))
action filter_type
action find
entity Q150953
relation P39
type Q12737077
['Q150953', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q150953 property:P39 ?j }
Henry VI, Holy Roman Emperor
action filter_type
action find
entity Henry VI, Holy Roman Emperor
relation position held
type occupation
['Henry VI, Holy Roman Emperor', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Henry_VI,_Holy_Roman_Emperor property:position_held ?j }
[]
occupation
Q782985 Q181765
SYSTEM
King of the Romans, Holy Roman Emperor
Q782985 Q181765
(Q150953,P39,c(Q12737077))
action filter_type
action find
entity Q150953
relation P39
type Q12737077
The positions held by Henry VI , Holy Roman Emperor were the [ANSWERS]
['Q150953', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q150953 property:P39 ?j }
King of the Romans Holy Roman Emperor
The positions held by Henry VI , Holy Roman Emperor were the King of the Romans and Holy Roman Emperor
King of the Romans Holy Roman Emperor
action filter_type
action find
entity Henry VI, Holy Roman Emperor
relation position held
type occupation
['Henry VI, Holy Roman Emperor', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Henry_VI,_Holy_Roman_Emperor property:position_held ?j }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1292437
Q12737077
USER
And how about Edward H. Moore?
(Q1292437,P39,c(Q12737077))
action filter_type
action find
entity Q1292437
relation P39
type Q12737077
['Q1292437', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q1292437 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
Edward H. Moore
action filter_type
action find
entity Edward H. Moore
relation position held
type occupation
['Edward H. Moore', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Edward_H._Moore property:position_held ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q13217683
SYSTEM
United States Senator
Q13217683
(Q1292437,P39,c(Q12737077))
action filter_type
action find
entity Q1292437
relation P39
type Q12737077
[ANSWER]
['Q1292437', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q1292437 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
United States Senator
United States Senator
action filter_type
action find
entity Edward H. Moore
relation position held
type occupation
['Edward H. Moore', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Edward_H._Moore property:position_held ?r . ?r rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saint of around 3 occupations ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?w ) WHERE { ?r property:P417 ?a . ?a rdf:type ontology:Q502895 . ?r rdf:type ontology:Q12737077 } GROUP BY ?a } . FILTER ( ?w = 3 ) }
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?w ) WHERE { ?r property:patron_saint ?a . ?a rdf:type ontology:common_name . ?r rdf:type ontology:occupation } GROUP BY ?a } . FILTER ( ?w = 3 ) }
[]
common name occupation
Q128538 Q192816 Q200895
SYSTEM
Luke the Evangelist, Saint Barbara, Agatha of Sicily
Q128538 Q192816 Q200895
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[ANSWERS] are the patron saint of around 3 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?w ) WHERE { ?r property:P417 ?a . ?a rdf:type ontology:Q502895 . ?r rdf:type ontology:Q12737077 } GROUP BY ?a } . FILTER ( ?w = 3 ) }
Luke the Evangelist Saint Barbara Agatha of Sicily
Luke the Evangelist, Saint Barbara and Agatha of Sicily are the patron saint of around 3 occupations
Luke the Evangelist Saint Barbara Agatha of Sicily
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?w ) WHERE { ?r property:patron_saint ?a . ?a rdf:type ontology:common_name . ?r rdf:type ontology:occupation } GROUP BY ?a } . FILTER ( ?w = 3 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1204015
P725
Q502895 Q2342494
USER
How many collectables did more number of people dub for than Ōkami Kakushi ?
(c(Q2342494),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q2342494
type Q502895
action count
action filter_type
action find
entity Q1204015
relation P725
type Q2342494
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?b ) WHERE { ?q rdf:type ontology:Q2342494 . ?u rdf:type ontology:Q502895 . ?q property:P725 ?u } GROUP BY ?q } . FILTER ( ?b > ?r ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { ?t rdf:type ontology:Q2342494 . resource:Q1204015 property:P725 ?t } } }
Ōkami Kakushi
action count
action greater
action find_tuple_counts
relation voice actor
type collectable
type common name
action count
action filter_type
action find
entity Ōkami Kakushi
relation voice actor
type collectable
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?b ) WHERE { ?q rdf:type ontology:collectable . ?u rdf:type ontology:common_name . ?q property:voice_actor ?u } GROUP BY ?q } . FILTER ( ?b > ?r ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { ?t rdf:type ontology:collectable . resource:Ōkami_Kakushi property:voice_actor ?t } } }
[]
common name collectable
SYSTEM
3
Q483263 Q53351 Q5647726
(c(Q2342494),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q2342494
type Q502895
action count
action filter_type
action find
entity Q1204015
relation P725
type Q2342494
[ANSWER]
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?b ) WHERE { ?q rdf:type ontology:Q2342494 . ?u rdf:type ontology:Q502895 . ?q property:P725 ?u } GROUP BY ?q } . FILTER ( ?b > ?r ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { ?t rdf:type ontology:Q2342494 . resource:Q1204015 property:P725 ?t } } }
Baka and Test Accel World Handy Manny's Motorcycle Adventure
3
action count
action greater
action find_tuple_counts
relation voice actor
type collectable
type common name
action count
action filter_type
action find
entity Ōkami Kakushi
relation voice actor
type collectable
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?b ) WHERE { ?q rdf:type ontology:collectable . ?u rdf:type ontology:common_name . ?q property:voice_actor ?u } GROUP BY ?q } . FILTER ( ?b > ?r ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { ?t rdf:type ontology:collectable . resource:Ōkami_Kakushi property:voice_actor ?t } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q495094
P725
Q502895 Q2342494
USER
And also tell me about Durarara!!?
(c(Q2342494),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q2342494
type Q502895
action count
action filter_type
action find
entity Q495094
relation P725
type Q2342494
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Q495094 property:P725 ?v . ?v rdf:type ontology:Q2342494 } } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?w ) WHERE { ?f property:P725 ?e . ?f rdf:type ontology:Q2342494 . ?e rdf:type ontology:Q502895 } GROUP BY ?f } }
Durarara!!
action count
action greater
action find_tuple_counts
relation voice actor
type collectable
type common name
action count
action filter_type
action find
entity Durarara!!
relation voice actor
type collectable
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Durarara!! property:voice_actor ?v . ?v rdf:type ontology:collectable } } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?w ) WHERE { ?f property:voice_actor ?e . ?f rdf:type ontology:collectable . ?e rdf:type ontology:common_name } GROUP BY ?f } }
[]
common name collectable
SYSTEM
7
Q50035 Q483263 Q482870 Q1204015 Q485958 Q53351 Q5647726
(c(Q2342494),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q2342494
type Q502895
action count
action filter_type
action find
entity Q495094
relation P725
type Q2342494
[ANSWER]
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Q495094 property:P725 ?v . ?v rdf:type ontology:Q2342494 } } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?w ) WHERE { ?f property:P725 ?e . ?f rdf:type ontology:Q2342494 . ?e rdf:type ontology:Q502895 } GROUP BY ?f } }
Nyaruko: Crawling with Love Baka and Test Boku wa Tomodachi ga Sukunai Ōkami Kakushi Ro-Kyu-Bu! Accel World Handy Manny's Motorcycle Adventure
7
action count
action greater
action find_tuple_counts
relation voice actor
type collectable
type common name
action count
action filter_type
action find
entity Durarara!!
relation voice actor
type collectable
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Durarara!! property:voice_actor ?v . ?v rdf:type ontology:collectable } } . FILTER ( ?w > ?d ) . { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?w ) WHERE { ?f property:voice_actor ?e . ?f rdf:type ontology:collectable . ?e rdf:type ontology:common_name } GROUP BY ?f } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do max number of people know to play ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?f ) { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?a } } . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?n = ?f ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?f ) { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?a } } . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?n = ?f ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Max number of people know how [ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?f ) { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?a } } . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?n = ?f ) }
piano
Max number of people know how piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?f ) { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?a } } . { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?n = ?f ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q128538
P800
Q3305213
USER
How many paintings are the notable works of Luke the Evangelist ?
(Q128538,P800,c(Q3305213))
action count
action filter_type
action find
entity Q128538
relation P800
type Q3305213
['Q128538', 'P800', {'concept': 'Q3305213'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q128538 property:P800 ?q . ?q rdf:type ontology:Q3305213 }
Luke the Evangelist
action count
action filter_type
action find
entity Luke the Evangelist
relation notable work
type painting
['Luke the Evangelist', 'notable work', {'concept': 'painting'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Luke_the_Evangelist property:notable_work ?q . ?q rdf:type ontology:painting }
[]
painting
SYSTEM
1
Q573619
(Q128538,P800,c(Q3305213))
action count
action filter_type
action find
entity Q128538
relation P800
type Q3305213
[ANSWER]
['Q128538', 'P800', {'concept': 'Q3305213'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q128538 property:P800 ?q . ?q rdf:type ontology:Q3305213 }
Black Madonna of Częstochowa
1
action count
action filter_type
action find
entity Luke the Evangelist
relation notable work
type painting
['Luke the Evangelist', 'notable work', {'concept': 'painting'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Luke_the_Evangelist property:notable_work ?q . ?q rdf:type ontology:painting }
[]