Simple Question (Direct)
Simple Question
Q1581238
P106
Q12737077
USER
What are the job of Martin Rothkegel ?
(Q1581238,P106,c(Q12737077))
action filter_type
action find
entity Q1581238
relation P106
type Q12737077
['Q1581238', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1581238 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Martin Rothkegel
action filter_type
action find
entity Martin Rothkegel
relation occupation
type occupation
['Martin Rothkegel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Martin_Rothkegel property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q1743122 Q1234713 Q1622272
SYSTEM
church historian, theologian, university teacher
Q1743122 Q1234713 Q1622272
(Q1581238,P106,c(Q12737077))
action filter_type
action find
entity Q1581238
relation P106
type Q12737077
The job of Martin Rothkegel are a [ANSWERS]
['Q1581238', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1581238 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
church historian theologian university teacher
The job of Martin Rothkegel are a church historian, theologian and university teacher
church historian theologian university teacher
action filter_type
action find
entity Martin Rothkegel
relation occupation
type occupation
['Martin Rothkegel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Martin_Rothkegel property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1234713
P425
Q1047113
USER
What has that one as the associated field of occupation ?
(Q1234713,P425,c(Q1047113))
action filter_type
action find
entity Q1234713
relation P425
type Q1047113
['Q1234713', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?l WHERE { resource:Q1234713 property:P425 ?l . ?l rdf:type ontology:Q1047113 }
theologian
action filter_type
action find
entity theologian
relation field of this occupation
type special field
['theologian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?l WHERE { resource:theologian property:field_of_this_occupation ?l . ?l rdf:type ontology:special_field }
[]
special field
Clarification for simple ques.
Q1743122
SYSTEM
Did you mean church historian ?
Q1743122 Q1234713 Q1622272
(Q1743122,P425,c(Q1047113)) (Q1234713,P425,c(Q1047113)) (Q1622272,P425,c(Q1047113))
[ANSWER]
['Q1743122', 'P425', {'concept': 'Q1047113'}] ['Q1234713', 'P425', {'concept': 'Q1047113'}] ['Q1622272', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?l WHERE { resource:Q1234713 property:P425 ?l . ?l rdf:type ontology:Q1047113 }
church historian theologian university teacher
Did you mean church historian ?
church historian
['church historian', 'field of this occupation', {'concept': 'special field'}] ['theologian', 'field of this occupation', {'concept': 'special field'}] ['university teacher', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?l WHERE { resource:theologian property:field_of_this_occupation ?l . ?l rdf:type ontology:special_field }
[]
Simple Question (Coreferenced)
USER
No, I meant theologian. Could you tell me the answer for that?
(Q1234713,P425,c(Q1047113))
Q1234713
['Q1234713', 'P425', {'concept': 'Q1047113'}]
['theologian', 'field of this occupation', {'concept': 'special field'}]
[]
Q34178
SYSTEM
theology
Q34178
(Q1234713,P425,c(Q1047113))
action filter_type
action find
entity Q1234713
relation P425
type Q1047113
[ANSWER] has that one as the associated field of occupation
['Q1234713', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?l WHERE { resource:Q1234713 property:P425 ?l . ?l rdf:type ontology:Q1047113 }
theology
Theology has that one as the associated field of occupation
theology
action filter_type
action find
entity theologian
relation field of this occupation
type special field
['theologian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?l WHERE { resource:theologian property:field_of_this_occupation ?l . ?l rdf:type ontology:special_field }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q732577 Q386724
USER
Which occupations were exactly 1 publications or works mainly about ?
(c(Q732577)|c(Q386724),P921,c(Q12737077))
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
value 1
[[{'concept': 'Q732577'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?v ) WHERE { { ?n rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q386724 . ?t property:P921 ?n } UNION { ?t property:P921 ?n . ?n rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q732577 } } GROUP BY ?n } . FILTER ( ?v = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work
value 1
[[{'concept': 'publication'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?v ) WHERE { { ?n rdf:type ontology:occupation . ?t rdf:type ontology:work . ?t property:main_subject ?n } UNION { ?t property:main_subject ?n . ?n rdf:type ontology:occupation . ?t rdf:type ontology:publication } } GROUP BY ?n } . FILTER ( ?v = 1 ) }
[]
occupation publication work
Q16003532 Q3809586 Q2094335
SYSTEM
middle school student, Wikipedian in Residence, United States Attorney
Q3809586 Q2094335 Q9402 Q15320003 Q16003532
(c(Q732577)|c(Q386724),P921,c(Q12737077))
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
value 1
[ANSWERS] were exactly 1 publications or works mainly about
[[{'concept': 'Q732577'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?v ) WHERE { { ?n rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q386724 . ?t property:P921 ?n } UNION { ?t property:P921 ?n . ?n rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q732577 } } GROUP BY ?n } . FILTER ( ?v = 1 ) }
Wikipedian in Residence United States Attorney ninja migrant worker middle school student
Middle school student, Wikipedian in Residence and United States Attorney were exactly 1 publications or works mainly about
middle school student Wikipedian in Residence United States Attorney
action equal
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work
value 1
[[{'concept': 'publication'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?v ) WHERE { { ?n rdf:type ontology:occupation . ?t rdf:type ontology:work . ?t property:main_subject ?n } UNION { ?t property:main_subject ?n . ?n rdf:type ontology:occupation . ?t rdf:type ontology:publication } } GROUP BY ?n } . FILTER ( ?v = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q191067 Q838948
USER
How many occupations were around 2 articles or works of art mainly about ?
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 2
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) ?v WHERE { { ?r property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q838948 } UNION { ?r property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q191067 } } GROUP BY ?v } . FILTER ( ?p = 2 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 2
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) ?v WHERE { { ?r property:main_subject ?v . ?v rdf:type ontology:occupation . ?r rdf:type ontology:work_of_art } UNION { ?r property:main_subject ?v . ?v rdf:type ontology:occupation . ?r rdf:type ontology:article } } GROUP BY ?v } . FILTER ( ?p = 2 ) }
[]
occupation article work of art
SYSTEM
96
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 2
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) ?v WHERE { { ?r property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q838948 } UNION { ?r property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q191067 } } GROUP BY ?v } . FILTER ( ?p = 2 ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
96
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 2
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) ?v WHERE { { ?r property:main_subject ?v . ?v rdf:type ontology:occupation . ?r rdf:type ontology:work_of_art } UNION { ?r property:main_subject ?v . ?v rdf:type ontology:occupation . ?r rdf:type ontology:article } } GROUP BY ?v } . FILTER ( ?p = 2 ) }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q42603 Q34178
P106 P101
Q502895
USER
Which people works in the domain of theology and are not working as priest ?
AND((c(Q502895),P101,Q34178), NOT((c(Q502895),P106,Q42603)))
action filter_type
action difference
action find_reverse
entity Q34178
relation P101
action find_reverse
entity Q42603
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P101', 'Q34178'], {'NOT': [[{'concept': 'Q502895'}, 'P106', 'Q42603']]}]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P101 resource:Q34178 . MINUS { ?i property:P106 resource:Q42603 } }
priest theology
action filter_type
action difference
action find_reverse
entity theology
relation field of work
action find_reverse
entity priest
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'field of work', 'theology'], {'NOT': [[{'concept': 'common name'}, 'occupation', 'priest']]}]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:field_of_work resource:theology . MINUS { ?i property:occupation resource:priest } }
[]
common name
Q184750 Q12223465 Q4403328 Q1640082 Q23447744 Q265133 Q1293767 Q705309 Q194691 Q15453298
SYSTEM
Some of them are Slavoj Žižek, Al-Humaydi, Manuel de Sá, Abu Hayyan al-Gharnati, Marios Mpegzos, Amina Wadud, George Metallinos, Louis Cappel, Friedrich Spanheim, Charles E. Raven
Q16905645 Q7347732 Q4846224 Q97675 Q487874 Q488200 Q37577 Q4403328 Q705309 Q12223465 Q21519468 Q15453298 Q12878063 Q24940434 Q16330648 Q23447744 Q1640082 Q164578 Q194691 Q5416903 Q184750 Q7177913 Q16648968 Q1293767 Q15402230 Q15994196 Q549214 Q265133 Q24947735 Q19595159 Q615260 Q11749249
AND((c(Q502895),P101,Q34178), NOT((c(Q502895),P106,Q42603)))
action filter_type
action difference
action find_reverse
entity Q34178
relation P101
action find_reverse
entity Q42603
relation P106
type Q502895
[ANSWERS] work in the domain of theology and are not working as priest
{'AND': [[{'concept': 'Q502895'}, 'P101', 'Q34178'], {'NOT': [[{'concept': 'Q502895'}, 'P106', 'Q42603']]}]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P101 resource:Q34178 . MINUS { ?i property:P106 resource:Q42603 } }
Francisco Tejada Vizuete Robert Moberly Abu l-Futuh al-Razi Theodor Hubrich Campegius Vitringa Fethullah Gülen John Calvin Manuel de Sá Louis Cappel Al-Humaydi John Nunes Charles E. Raven Ignatios Moschakis Josué Le Vasseur Nikolaos M. Papadopoulos Marios Mpegzos Abu Hayyan al-Gharnati Adnan Oktar Friedrich Spanheim Everard Digby Slavoj Žižek Peter of Bergamo Stewart Dingwall Fordyce Salmond George Metallinos Joaquim Gomis Sanahuja Georgios Gratseas Thomas van Erpe Amina Wadud Krzysztof Kida Marcia Bunge William of Conches Krzysztof Góźdź
Slavoj Žižek, Al-Humaydi, Manuel de Sá, Abu Hayyan al-Gharnati, Marios Mpegzos, Amina Wadud, George Metallinos, Louis Cappel, Friedrich Spanheim and Charles E. Raven work in the domain of theology and are not working as priest
Slavoj Žižek Al-Humaydi Manuel de Sá Abu Hayyan al-Gharnati Marios Mpegzos Amina Wadud George Metallinos Louis Cappel Friedrich Spanheim Charles E. Raven
action filter_type
action difference
action find_reverse
entity theology
relation field of work
action find_reverse
entity priest
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'field of work', 'theology'], {'NOT': [[{'concept': 'common name'}, 'occupation', 'priest']]}]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:field_of_work resource:theology . MINUS { ?i property:occupation resource:priest } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q182718
P1303
Q34379 Q502895
USER
How many musical instruments are played by greater number of people than Nyckelharpa ?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q182718
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Q182718 property:P1303 ?r . ?r rdf:type ontology:Q34379 } } . FILTER ( ?o > ?h ) }
Nyckelharpa
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Nyckelharpa
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Nyckelharpa property:instrument ?r . ?r rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?h ) }
[]
musical instrument common name
SYSTEM
22
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q626035 Q742180 Q1444 Q220971 Q128309 Q726306 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q182718
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Q182718 property:P1303 ?r . ?r rdf:type ontology:Q34379 } } . FILTER ( ?o > ?h ) }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla glockenspiel viola d'amore organ marimba drum kit erhu electronic keyboard drum
22
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Nyckelharpa
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Nyckelharpa property:instrument ?r . ?r rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?h ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q80284
P1303
Q34379 Q502895
USER
And what about viola?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q80284
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?g rdf:type ontology:Q34379 . resource:Q80284 property:P1303 ?g } } . FILTER ( ?u > ?c ) }
viola
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity viola
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?g rdf:type ontology:musical_instrument . resource:viola property:instrument ?g } } . FILTER ( ?u > ?c ) }
[]
musical instrument common name
SYSTEM
8
Q46185 Q80019 Q5994 Q8338 Q8371 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q80284
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?g rdf:type ontology:Q34379 . resource:Q80284 property:P1303 ?g } } . FILTER ( ?u > ?c ) }
bass guitar double bass piano trumpet cello violin organ drum kit
8
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity viola
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?g rdf:type ontology:musical_instrument . resource:viola property:instrument ?g } } . FILTER ( ?u > ?c ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P3091
Q3745054 Q502895 Q502895
USER
How many people rides on a atleast 2 horse breeds and people ?
(c(Q502895),P3091,c(Q3745054)|c(Q502895))
action count
action atleast
action union
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action find_tuple_counts
relation P3091
type Q502895
type Q502895
value 2
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q3745054'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?o WHERE { { ?o property:P3091 ?k . ?o rdf:type ontology:Q502895 . ?k rdf:type ontology:Q3745054 } UNION { ?o rdf:type ontology:Q502895 . ?k rdf:type ontology:Q502895 . ?o property:P3091 ?k } } GROUP BY ?o } . FILTER ( ?s >= 2 ) }
action count
action atleast
action union
action find_tuple_counts
relation mount
type common name
type horse breed
action find_tuple_counts
relation mount
type common name
type common name
value 2
[{'concept': 'common name'}, 'mount', [{'concept': 'horse breed'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?o WHERE { { ?o property:mount ?k . ?o rdf:type ontology:common_name . ?k rdf:type ontology:horse_breed } UNION { ?o rdf:type ontology:common_name . ?k rdf:type ontology:common_name . ?o property:mount ?k } } GROUP BY ?o } . FILTER ( ?s >= 2 ) }
[]
horse breed common name common name
SYSTEM
25
Q2120529 Q69084 Q358777 Q235022 Q3087038 Q2057115 Q14912896 Q3591240 Q3169911 Q724288 Q538006 Q952736 Q2287454 Q1617291 Q60968 Q1277320 Q6369922 Q1985582 Q288267 Q1930899 Q175930 Q673136 Q62253 Q3308301 Q1538882
(c(Q502895),P3091,c(Q3745054)|c(Q502895))
action count
action atleast
action union
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action find_tuple_counts
relation P3091
type Q502895
type Q502895
value 2
[ANSWER]
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q3745054'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?o WHERE { { ?o property:P3091 ?k . ?o rdf:type ontology:Q502895 . ?k rdf:type ontology:Q3745054 } UNION { ?o rdf:type ontology:Q502895 . ?k rdf:type ontology:Q502895 . ?o property:P3091 ?k } } GROUP BY ?o } . FILTER ( ?s >= 2 ) }
Pénélope Leprevost Paul Schockemöhle Yves Saint-Martin Anky van Grunsven Freddy Head Patrice Delaveau Bassem Hassan Mohammed Éric Levallois Jean-René Gougeon Rodrigo Pessoa Pat Eddery Nelson Pessoa Simon Delestre Pierre Durand, Jr. Ludger Beerbaum Roger-Yves Bost Karen O'Connor Nick Skelton Éric Navet Michel Robert Ian Millar Steve Guerdat Meredith Michaels-Beerbaum Michael Kinane Kevin Staut
25
action count
action atleast
action union
action find_tuple_counts
relation mount
type common name
type horse breed
action find_tuple_counts
relation mount
type common name
type common name
value 2
[{'concept': 'common name'}, 'mount', [{'concept': 'horse breed'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?o WHERE { { ?o property:mount ?k . ?o rdf:type ontology:common_name . ?k rdf:type ontology:horse_breed } UNION { ?o rdf:type ontology:common_name . ?k rdf:type ontology:common_name . ?o property:mount ?k } } GROUP BY ?o } . FILTER ( ?s >= 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q184750
P21
Q290
USER
What is the sex of Slavoj Žižek ?
(Q184750,P21,c(Q290))
action filter_type
action find
entity Q184750
relation P21
type Q290
['Q184750', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q184750 property:P21 ?s . ?s rdf:type ontology:Q290 }
Slavoj Žižek
action filter_type
action find
entity Slavoj Žižek
relation gender
type sex
['Slavoj Žižek', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Slavoj_Žižek property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q184750,P21,c(Q290))
action filter_type
action find
entity Q184750
relation P21
type Q290
The sex of Slavoj Žižek is the [ANSWER]
['Q184750', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q184750 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
The sex of Slavoj Žižek is the male
male
action filter_type
action find
entity Slavoj Žižek
relation gender
type sex
['Slavoj Žižek', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Slavoj_Žižek property:gender ?s . ?s rdf:type ontology:sex }
[]