Simple Question (Direct)
Simple Question
Q2071410
P25
Q502895
USER
Who was the mom of Natalia Zagryazyskaya ?
(Q2071410,P25,c(Q502895))
action filter_type
action find
entity Q2071410
relation P25
type Q502895
['Q2071410', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q2071410 property:P25 ?e . ?e rdf:type ontology:Q502895 }
Natalia Zagryazyskaya
action filter_type
action find
entity Natalia Zagryazyskaya
relation mother
type common name
['Natalia Zagryazyskaya', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Natalia_Zagryazyskaya property:mother ?e . ?e rdf:type ontology:common_name }
[]
common name
Q3696516
SYSTEM
Katerina Ivanovna Razumovskaja
Q3696516
(Q2071410,P25,c(Q502895))
action filter_type
action find
entity Q2071410
relation P25
type Q502895
The mom of Natalia Zagryazyskaya was born [ANSWER]
['Q2071410', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q2071410 property:P25 ?e . ?e rdf:type ontology:Q502895 }
Katerina Ivanovna Razumovskaja
The mom of Natalia Zagryazyskaya was born Katerina Ivanovna Razumovskaja
Katerina Ivanovna Razumovskaja
action filter_type
action find
entity Natalia Zagryazyskaya
relation mother
type common name
['Natalia Zagryazyskaya', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Natalia_Zagryazyskaya property:mother ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3696516
P26
Q502895
USER
Who is the spouse of that one ?
(Q3696516,P26,c(Q502895))
action filter_type
action find
entity Q3696516
relation P26
type Q502895
['Q3696516', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q3696516 property:P26 ?l . ?l rdf:type ontology:Q502895 }
Katerina Ivanovna Razumovskaja
action filter_type
action find
entity Katerina Ivanovna Razumovskaja
relation spouse
type common name
['Katerina Ivanovna Razumovskaja', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Katerina_Ivanovna_Razumovskaja property:spouse ?l . ?l rdf:type ontology:common_name }
[]
common name
Q698984
SYSTEM
Kyrylo Rozumovskyi
Q698984
(Q3696516,P26,c(Q502895))
action filter_type
action find
entity Q3696516
relation P26
type Q502895
The spouse of that one is the [ANSWER]
['Q3696516', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q3696516 property:P26 ?l . ?l rdf:type ontology:Q502895 }
Kyrylo Rozumovskyi
The spouse of that one is the Kyrylo Rozumovskyi
Kyrylo Rozumovskyi
action filter_type
action find
entity Katerina Ivanovna Razumovskaja
relation spouse
type common name
['Katerina Ivanovna Razumovskaja', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Katerina_Ivanovna_Razumovskaja property:spouse ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q698984
P40
Q502895
USER
Which people are an offsprings of that one ?
(Q698984,P40,c(Q502895))
action filter_type
action find
entity Q698984
relation P40
type Q502895
['Q698984', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q698984 property:P40 ?s . ?s rdf:type ontology:Q502895 }
Kyrylo Rozumovskyi
action filter_type
action find
entity Kyrylo Rozumovskyi
relation child
type common name
['Kyrylo Rozumovskyi', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Kyrylo_Rozumovskyi property:child ?s . ?s rdf:type ontology:common_name }
[]
common name
Q2039668 Q502943 Q2337590
SYSTEM
Alexeï Razoumovsky, Andrey Razumovsky, Grigory Razumovsky
Q2071410 Q4104982 Q2337590 Q502943 Q622802 Q2039668
(Q698984,P40,c(Q502895))
action filter_type
action find
entity Q698984
relation P40
type Q502895
[ANSWERS] are an offsprings of that one
['Q698984', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q698984 property:P40 ?s . ?s rdf:type ontology:Q502895 }
Natalia Zagryazyskaya Anna Kirillovna Razumovskaya Grigory Razumovsky Andrey Razumovsky Lev Kirillovich Razumovsky Alexeï Razoumovsky
Alexeï Razoumovsky, Andrey Razumovsky and Grigory Razumovsky are an offsprings of that one
Alexeï Razoumovsky Andrey Razumovsky Grigory Razumovsky
action filter_type
action find
entity Kyrylo Rozumovskyi
relation child
type common name
['Kyrylo Rozumovskyi', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Kyrylo_Rozumovskyi property:child ?s . ?s rdf:type ontology:common_name }
[]
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 ?i WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?v ) { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?f } } . { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:P1303 ?i . ?s rdf:type ontology:Q502895 . ?i rdf:type ontology:Q34379 } GROUP BY ?i } . FILTER ( ?r = ?v ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?v ) { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?f } } . { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:instrument ?i . ?s rdf:type ontology:common_name . ?i rdf:type ontology:musical_instrument } GROUP BY ?i } . FILTER ( ?r = ?v ) }
[]
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 ?i WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?v ) { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?f } } . { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:P1303 ?i . ?s rdf:type ontology:Q502895 . ?i rdf:type ontology:Q34379 } GROUP BY ?i } . FILTER ( ?r = ?v ) }
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 ?i WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?v ) { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?f } } . { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:instrument ?i . ?s rdf:type ontology:common_name . ?i rdf:type ontology:musical_instrument } GROUP BY ?i } . FILTER ( ?r = ?v ) }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5994 Q12012097
P61
Q502895
USER
Was Øystein Skogrand the inventor or discoverer of piano ?
(Q5994,P61,Q12012097)
action is_in
entity Q12012097
action find
entity Q5994
relation P61
['Q5994', 'P61', 'Q12012097']
ASK WHERE { resource:Q5994 property:P61 resource:Q12012097 }
piano Øystein Skogrand
action is_in
entity Øystein Skogrand
action find
entity piano
relation discoverer or inventor
['piano', 'discoverer or inventor', 'Øystein Skogrand']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:Øystein_Skogrand }
[]
common name
SYSTEM
NO
(Q5994,P61,Q12012097)
action is_in
entity Q12012097
action find
entity Q5994
relation P61
[ANSWER]
['Q5994', 'P61', 'Q12012097']
ASK WHERE { resource:Q5994 property:P61 resource:Q12012097 }
No
action is_in
entity Øystein Skogrand
action find
entity piano
relation discoverer or inventor
['piano', 'discoverer or inventor', 'Øystein Skogrand']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:Øystein_Skogrand }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by max number of people ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?e ) { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?r } } . { SELECT DISTINCT ?w ( COUNT ( ?f ) AS ?h ) WHERE { ?f property:P1303 ?w . ?f rdf:type ontology:Q502895 . ?w rdf:type ontology:Q34379 } GROUP BY ?w } . FILTER ( ?h = ?e ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?e ) { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?r } } . { SELECT DISTINCT ?w ( COUNT ( ?f ) AS ?h ) WHERE { ?f property:instrument ?w . ?f rdf:type ontology:common_name . ?w rdf:type ontology:musical_instrument } GROUP BY ?w } . FILTER ( ?h = ?e ) }
[]
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
[ANSWER] is played by max number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?e ) { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?r } } . { SELECT DISTINCT ?w ( COUNT ( ?f ) AS ?h ) WHERE { ?f property:P1303 ?w . ?f rdf:type ontology:Q502895 . ?w rdf:type ontology:Q34379 } GROUP BY ?w } . FILTER ( ?h = ?e ) }
piano
Piano is played by max number of people
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?e ) { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?r } } . { SELECT DISTINCT ?w ( COUNT ( ?f ) AS ?h ) WHERE { ?f property:instrument ?w . ?f rdf:type ontology:common_name . ?w rdf:type ontology:musical_instrument } GROUP BY ?w } . FILTER ( ?h = ?e ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P870
Q34379 Q9748 Q862597
USER
How many musical instruments are used as instrumentation in around the same number of concertoes or musical forms as that musical instrument ?
(c(Q9748)|c(Q862597),P870,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action find_reverse_tuple_counts
relation P870
type Q34379
type Q862597
action count
action filter_multi_types
action find_reverse
entity Q5994
relation P870
type Q9748
type Q862597
[[{'concept': 'Q9748'}, {'concept': 'Q862597'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { FILTER ( ?n = ?z ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:P870 resource:Q5994 . { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:Q9748 ) ( ontology:Q862597 ) } } } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?s WHERE { { ?m rdf:type ontology:Q9748 . ?s rdf:type ontology:Q34379 . ?m property:P870 ?s } UNION { ?m rdf:type ontology:Q862597 . ?s rdf:type ontology:Q34379 . ?m property:P870 ?s } } GROUP BY ?s } }
action count
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical form
action count
action filter_multi_types
action find_reverse
entity piano
relation instrumentation
type concerto
type musical form
[[{'concept': 'concerto'}, {'concept': 'musical form'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { FILTER ( ?n = ?z ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:instrumentation resource:piano . { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:concerto ) ( ontology:musical_form ) } } } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?s WHERE { { ?m rdf:type ontology:concerto . ?s rdf:type ontology:musical_instrument . ?m property:instrumentation ?s } UNION { ?m rdf:type ontology:musical_form . ?s rdf:type ontology:musical_instrument . ?m property:instrumentation ?s } } GROUP BY ?s } }
[]
musical instrument concerto musical form
SYSTEM
1
Q5994
(c(Q9748)|c(Q862597),P870,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action find_reverse_tuple_counts
relation P870
type Q34379
type Q862597
action count
action filter_multi_types
action find_reverse
entity Q5994
relation P870
type Q9748
type Q862597
[ANSWER]
[[{'concept': 'Q9748'}, {'concept': 'Q862597'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { FILTER ( ?n = ?z ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:P870 resource:Q5994 . { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:Q9748 ) ( ontology:Q862597 ) } } } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?s WHERE { { ?m rdf:type ontology:Q9748 . ?s rdf:type ontology:Q34379 . ?m property:P870 ?s } UNION { ?m rdf:type ontology:Q862597 . ?s rdf:type ontology:Q34379 . ?m property:P870 ?s } } GROUP BY ?s } }
piano
1
action count
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical form
action count
action filter_multi_types
action find_reverse
entity piano
relation instrumentation
type concerto
type musical form
[[{'concept': 'concerto'}, {'concept': 'musical form'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { FILTER ( ?n = ?z ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:instrumentation resource:piano . { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:concerto ) ( ontology:musical_form ) } } } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?s WHERE { { ?m rdf:type ontology:concerto . ?s rdf:type ontology:musical_instrument . ?m property:instrumentation ?s } UNION { ?m rdf:type ontology:musical_form . ?s rdf:type ontology:musical_instrument . ?m property:instrumentation ?s } } GROUP BY ?s } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do atleast 979 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 979
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?u ) WHERE { ?y property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?u >= 979 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 979
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?u ) WHERE { ?y property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?u >= 979 ) }
[]
musical instrument common name
SYSTEM
6
Q46185 Q5994 Q8338 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 979
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?u ) WHERE { ?y property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?u >= 979 ) }
bass guitar piano trumpet violin organ drum kit
6
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 979
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?u ) WHERE { ?y property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?u >= 979 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q698984 Q21093951
P7
Q502895
USER
How many people had Kyrylo Rozumovskyi or Jacques d'Armagnac as brother ?
(c(Q502895),P7,Q698984) (c(Q502895),P7,Q21093951)
action count
action union
action filter_type
action find_reverse
entity Q698984
relation P7
type Q502895
action filter_type
action find_reverse
entity Q21093951
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q698984'] [{'concept': 'Q502895'}, 'P7', 'Q21093951']
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { ?b property:P7 resource:Q21093951 . ?b rdf:type ontology:Q502895 } UNION { ?b property:P7 resource:Q698984 . ?b rdf:type ontology:Q502895 } }
Kyrylo Rozumovskyi Jacques d'Armagnac
action count
action union
action filter_type
action find_reverse
entity Kyrylo Rozumovskyi
relation brother
type common name
action filter_type
action find_reverse
entity Jacques d'Armagnac
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Kyrylo Rozumovskyi'] [{'concept': 'common name'}, 'brother', "Jacques d'Armagnac"]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { ?b property:brother resource:Jacques_d'Armagnac . ?b rdf:type ontology:common_name } UNION { ?b property:brother resource:Kyrylo_Rozumovskyi . ?b rdf:type ontology:common_name } }
[]
common name
SYSTEM
6
Q2308146 Q1852377 Q1979861 Q21093787 Q1885295 Q918514
(c(Q502895),P7,Q698984) (c(Q502895),P7,Q21093951)
action count
action union
action filter_type
action find_reverse
entity Q698984
relation P7
type Q502895
action filter_type
action find_reverse
entity Q21093951
relation P7
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q698984'] [{'concept': 'Q502895'}, 'P7', 'Q21093951']
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { ?b property:P7 resource:Q21093951 . ?b rdf:type ontology:Q502895 } UNION { ?b property:P7 resource:Q698984 . ?b rdf:type ontology:Q502895 } }
Marguerite d'Armagnac Louis d'Armagnac, Duke of Nemours Jean d'Armagnac, Duke of Nemours Catherine of Armagnac Charlotte d'Armagnac Alexey Razumovsky
6
action count
action union
action filter_type
action find_reverse
entity Kyrylo Rozumovskyi
relation brother
type common name
action filter_type
action find_reverse
entity Jacques d'Armagnac
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Kyrylo Rozumovskyi'] [{'concept': 'common name'}, 'brother', "Jacques d'Armagnac"]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { ?b property:brother resource:Jacques_d'Armagnac . ?b rdf:type ontology:common_name } UNION { ?b property:brother resource:Kyrylo_Rozumovskyi . ?b rdf:type ontology:common_name } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P870
Q34379 Q207628 Q9748
USER
How many musical instruments are used in atmost 35 musical compositions and concertoes ?
(c(Q207628)|c(Q9748),P870,c(Q34379))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q207628
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
value 35
[[{'concept': 'Q207628'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) ?s WHERE { { ?o rdf:type ontology:Q207628 . ?s rdf:type ontology:Q34379 . ?o property:P870 ?s } UNION { ?o property:P870 ?s . ?s rdf:type ontology:Q34379 . ?o rdf:type ontology:Q9748 } } GROUP BY ?s } . FILTER ( ?u <= 35 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical composition
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
value 35
[[{'concept': 'musical composition'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) ?s WHERE { { ?o rdf:type ontology:musical_composition . ?s rdf:type ontology:musical_instrument . ?o property:instrumentation ?s } UNION { ?o property:instrumentation ?s . ?s rdf:type ontology:musical_instrument . ?o rdf:type ontology:concerto } } GROUP BY ?s } . FILTER ( ?u <= 35 ) }
[]
musical instrument musical composition concerto
SYSTEM
17
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q1444 Q39777 Q11404 Q206987 Q81982
(c(Q207628)|c(Q9748),P870,c(Q34379))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q207628
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
value 35
[ANSWER]
[[{'concept': 'Q207628'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) ?s WHERE { { ?o rdf:type ontology:Q207628 . ?s rdf:type ontology:Q34379 . ?o property:P870 ?s } UNION { ?o property:P870 ?s . ?s rdf:type ontology:Q34379 . ?o rdf:type ontology:Q9748 } } GROUP BY ?s } . FILTER ( ?u <= 35 ) }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta organ maraca drum vibraphone harpsichord
17
action count
action atmost
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical composition
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
value 35
[[{'concept': 'musical composition'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) ?s WHERE { { ?o rdf:type ontology:musical_composition . ?s rdf:type ontology:musical_instrument . ?o property:instrumentation ?s } UNION { ?o property:instrumentation ?s . ?s rdf:type ontology:musical_instrument . ?o rdf:type ontology:concerto } } GROUP BY ?s } . FILTER ( ?u <= 35 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q502943
P7
Q502895
USER
How many people have Andrey Razumovsky as their brother ?
(c(Q502895),P7,Q502943)
action count
action filter_type
action find_reverse
entity Q502943
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q502943']
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:P7 resource:Q502943 . ?h rdf:type ontology:Q502895 }
Andrey Razumovsky
action count
action filter_type
action find_reverse
entity Andrey Razumovsky
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Andrey Razumovsky']
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:brother resource:Andrey_Razumovsky . ?h rdf:type ontology:common_name }
[]
common name
SYSTEM
5
Q4104982 Q2337590 Q2039668 Q2071410 Q622802
(c(Q502895),P7,Q502943)
action count
action filter_type
action find_reverse
entity Q502943
relation P7
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q502943']
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:P7 resource:Q502943 . ?h rdf:type ontology:Q502895 }
Anna Kirillovna Razumovskaya Grigory Razumovsky Alexeï Razoumovsky Natalia Zagryazyskaya Lev Kirillovich Razumovsky
5
action count
action filter_type
action find_reverse
entity Andrey Razumovsky
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Andrey Razumovsky']
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { ?h property:brother resource:Andrey_Razumovsky . ?h rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q3120286
P7
Q502895
USER
And how about William de Bohun, 1st Earl of Northampton?
(c(Q502895),P7,Q3120286)
action count
action filter_type
action find_reverse
entity Q3120286
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q3120286']
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:P7 resource:Q3120286 . ?w rdf:type ontology:Q502895 }
William de Bohun, 1st Earl of Northampton
action count
action filter_type
action find_reverse
entity William de Bohun, 1st Earl of Northampton
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'William de Bohun, 1st Earl of Northampton']
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:brother resource:William_de_Bohun,_1st_Earl_of_Northampton . ?w rdf:type ontology:common_name }
[]
common name
SYSTEM
4
Q4089851 Q5354426 Q6760053 Q4089853
(c(Q502895),P7,Q3120286)
action count
action filter_type
action find_reverse
entity Q3120286
relation P7
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q3120286']
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:P7 resource:Q3120286 . ?w rdf:type ontology:Q502895 }
John de Bohun, 5th Earl of Hereford Eleanor de Bohun, Countess of Ormonde Margaret de Bohun, Countess of Devon Humphrey de Bohun, 6th Earl of Hereford
4
action count
action filter_type
action find_reverse
entity William de Bohun, 1st Earl of Northampton
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'William de Bohun, 1st Earl of Northampton']
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { ?w property:brother resource:William_de_Bohun,_1st_Earl_of_Northampton . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q698984
P166
Q193622
USER
Which order was Kyrylo Rozumovskyi awarded with ?
(Q698984,P166,c(Q193622))
action filter_type
action find
entity Q698984
relation P166
type Q193622
['Q698984', 'P166', {'concept': 'Q193622'}]
SELECT DISTINCT ?z WHERE { resource:Q698984 property:P166 ?z . ?z rdf:type ontology:Q193622 }
Kyrylo Rozumovskyi
action filter_type
action find
entity Kyrylo Rozumovskyi
relation award received
type order
['Kyrylo Rozumovskyi', 'award received', {'concept': 'order'}]
SELECT DISTINCT ?z WHERE { resource:Kyrylo_Rozumovskyi property:award_received ?z . ?z rdf:type ontology:order }
[]
order
Q15831432
SYSTEM
Knight of the Order of St. Alexander Nevsky
Q15831432
(Q698984,P166,c(Q193622))
action filter_type
action find
entity Q698984
relation P166
type Q193622
Kyrylo Rozumovskyi was awarded the [ANSWER]
['Q698984', 'P166', {'concept': 'Q193622'}]
SELECT DISTINCT ?z WHERE { resource:Q698984 property:P166 ?z . ?z rdf:type ontology:Q193622 }
Knight of the Order of St. Alexander Nevsky
Kyrylo Rozumovskyi was awarded the Knight of the Order of St. Alexander Nevsky
Knight of the Order of St. Alexander Nevsky
action filter_type
action find
entity Kyrylo Rozumovskyi
relation award received
type order
['Kyrylo Rozumovskyi', 'award received', {'concept': 'order'}]
SELECT DISTINCT ?z WHERE { resource:Kyrylo_Rozumovskyi property:award_received ?z . ?z rdf:type ontology:order }
[]